Package | Description |
---|---|
groovyx.gpars.activeobject | |
groovyx.gpars.actor |
This package holds classes forming the public actor API.
|
groovyx.gpars.actor.impl |
This package holds classes some non-public aspects of actor implementation.
|
groovyx.gpars.dataflow |
This package holds classes for basic dataflow concurrency constructs, like dataflow variables, streams and threads.
|
groovyx.gpars.dataflow.expression | |
groovyx.gpars.dataflow.operator |
This package holds classes representing operators and channels necessary for full dataflow concurrency.
|
groovyx.gpars.dataflow.stream |
Modifier and Type | Class and Description |
---|---|
class |
InternalActor
Backs active objects and invokes all object's active methods.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractLoopingActor
Wraps all actors that repeatedly loop through incoming messages and hold no implicit state between subsequent messages.
|
class |
Actor
Actors are active objects, which borrow a thread from a thread pool.
|
static class |
Actor.RemoteActor |
class |
BlockingActor |
class |
DefaultActor
The DefaultActor class is the base for all stateful actors, who need to maintain implicit state between subsequent message arrivals.
|
class |
DynamicDispatchActor
A pooled actor allowing for an alternative structure of the message handling code.
|
class |
ReactiveActor
An actor representing a reactor.
|
class |
StaticDispatchActor<T>
Offers a statically dispatched and thus slightly faster alternative to the DynamicDispatchActor class.
|
Modifier and Type | Field and Description |
---|---|
private MessageStream |
AbstractLoopingActor.currentSender |
private MessageStream |
ActorMessage.sender |
Modifier and Type | Method and Description |
---|---|
MessageStream |
AbstractLoopingActor.getSender()
Retrieves the sender actor of the currently processed message.
|
MessageStream |
ActorMessage.getSender() |
MessageStream |
AbstractLoopingActor.send(java.lang.Object message) |
MessageStream |
Actor.RemoteActor.send(java.lang.Object message) |
<T> MessageStream |
Actor.sendAndContinue(T message,
groovy.lang.Closure closure)
Sends a message and execute continuation when reply became available.
|
Modifier and Type | Method and Description |
---|---|
void |
Actor.join(MessageStream listener)
Notify listener when finished
|
Constructor and Description |
---|
ActorMessage(java.lang.Object payLoad,
MessageStream sender)
Creates a new instance
|
Modifier and Type | Class and Description |
---|---|
static class |
MessageStream.RemoteMessageStream |
private static class |
MessageStream.ResultWaiter<V>
Represents a pending request for a reply from an actor.
|
class |
ReplyingMessageStream |
class |
RunnableBackedBlockingActor
Utility class to implement a blocking actor backed by any Runnable (including Closure)
|
class |
SequentialProcessingActor |
Modifier and Type | Field and Description |
---|---|
private MessageStream |
ReplyingMessageStream.sender
A list of senders for the currently processed messages
|
private MessageStream |
MessageStream.SendTo.to |
Modifier and Type | Method and Description |
---|---|
<T> MessageStream |
MessageStream.call(T message)
Same as send
|
protected MessageStream |
ReplyingMessageStream.getSender() |
MessageStream |
MessageStream.SendTo.getTo() |
<T> MessageStream |
MessageStream.leftShift(T message)
Same as send
|
MessageStream |
MessageStream.send()
Convenience method for send(new Object()).
|
abstract MessageStream |
MessageStream.send(java.lang.Object message)
Send message to stream and return immediately
|
MessageStream |
MessageStream.ResultWaiter.send(java.lang.Object message)
Accepts the message as a reply and wakes up the sleeping thread.
|
MessageStream |
MessageStream.RemoteMessageStream.send(java.lang.Object message) |
MessageStream |
SequentialProcessingActor.send(java.lang.Object message) |
<T> MessageStream |
MessageStream.send(T message,
MessageStream replyTo)
Send message to stream and return immediately.
|
Modifier and Type | Method and Description |
---|---|
<T> MessageStream |
MessageStream.send(T message,
MessageStream replyTo)
Send message to stream and return immediately.
|
protected void |
ReplyingMessageStream.setSender(MessageStream sender) |
Constructor and Description |
---|
MessageStream.SendTo(MessageStream to,
ActorMessage message) |
Modifier and Type | Class and Description |
---|---|
class |
DataCallback
A helper class enabling the 'whenBound()' or 'getValAsync' functionality of a DataflowVariable and DataflowQueue,
as well as 'sendAndContinue()' on actors.
|
class |
DataCallbackWithPool
A helper class enabling the 'whenBound()' or 'getValAsync' functionality of a DataflowVariable and DataflowQueue,
whenever a thread pool instead of a PGroup is specified..
|
Modifier and Type | Field and Description |
---|---|
private java.util.Collection<MessageStream> |
DataflowQueue.wheneverBoundListeners
A collection of listeners who need to be informed each time the stream is bound to a value
|
Modifier and Type | Method and Description |
---|---|
MessageStream |
DataCallback.send(java.lang.Object message)
Sends a message back to the DataCallback.
|
MessageStream |
DataCallbackWithPool.send(java.lang.Object message)
Sends a message back to the DataCallback.
|
Modifier and Type | Method and Description |
---|---|
void |
Select.call(MessageStream messageStream)
Selects a value from a single randomly chosen input channel, which has a value available for read.
|
void |
Select.call(MessageStream messageStream,
java.util.List<java.lang.Boolean> mask)
Selects a value from a single randomly chosen input channel, which has a value available for read.
|
void |
DataflowQueue.getValAsync(MessageStream callback)
Asynchronously retrieves the value at the head of the buffer.
|
void |
DataflowReadChannel.getValAsync(MessageStream callback)
Asynchronously retrieves the value from the channel.
|
void |
LazyDataflowVariable.getValAsync(MessageStream callback) |
void |
SyncDataflowStreamReadAdapter.getValAsync(MessageStream callback) |
void |
DataflowQueue.getValAsync(java.lang.Object attachment,
MessageStream callback)
Asynchronously retrieves the value at the head of the buffer.
|
void |
DataflowReadChannel.getValAsync(java.lang.Object attachment,
MessageStream callback)
Asynchronously retrieves the value from the channel.
|
void |
LazyDataflowVariable.getValAsync(java.lang.Object attachment,
MessageStream callback) |
void |
SyncDataflowStreamReadAdapter.getValAsync(java.lang.Object attachment,
MessageStream callback) |
void |
Select.prioritySelect(MessageStream messageStream)
Selects a value from a single input channel, which has a value available for read.
|
void |
Select.prioritySelect(MessageStream messageStream,
java.util.List<java.lang.Boolean> mask)
Selects a value from a single input channel, which has a value available for read.
|
protected void |
SyncDataflowVariable.scheduleCallback(java.lang.Object attachment,
MessageStream callback) |
void |
Select.select(MessageStream messageStream)
Selects a value from a single randomly chosen input channel, which has a value available for read.
|
private void |
Select.select(MessageStream messageStream,
int startIndex,
java.util.List<java.lang.Boolean> mask)
Invokes the internal select base with a SelectRequest instance ensuring a message is sent, once a value has been selected
|
void |
Select.select(MessageStream messageStream,
java.util.List<java.lang.Boolean> mask)
Selects a value from a single randomly chosen input channel, which has a value available for read.
|
void |
DataflowQueue.whenBound(MessageStream stream)
Send the next bound piece of data to the provided stream when it becomes available.
|
void |
DataflowReadChannel.whenBound(MessageStream stream)
Send the bound data to provided stream when it becomes available
|
void |
Promise.whenBound(MessageStream stream)
Send the bound data to provided stream when it becomes available
|
void |
SyncDataflowStreamReadAdapter.whenBound(MessageStream stream) |
void |
DataflowQueue.wheneverBound(MessageStream stream)
Send all pieces of data bound in the future to the provided stream when it becomes available.
|
void |
SelectableChannel.wheneverBound(MessageStream stream)
Send all pieces of data bound in the future to the provided stream when it becomes available.
|
void |
SyncDataflowStreamReadAdapter.wheneverBound(MessageStream stream) |
Modifier and Type | Class and Description |
---|---|
(package private) class |
DataflowExpression.DataflowExpressionsCollector
Listener for availability of data flow expressions we depend on.
|
Modifier and Type | Field and Description |
---|---|
private MessageStream |
DataflowExpression.WaitingThread.callback |
Modifier and Type | Method and Description |
---|---|
MessageStream |
DataflowExpression.DataflowExpressionsCollector.send(java.lang.Object message) |
Modifier and Type | Method and Description |
---|---|
void |
DataflowExpression.getValAsync(MessageStream callback)
Asynchronously retrieves the value of the variable.
|
void |
DataflowExpression.getValAsync(java.lang.Object attachment,
MessageStream callback)
Used by Dataflow operators.
|
protected void |
DataflowExpression.scheduleCallback(java.lang.Object attachment,
MessageStream callback)
Sends the result back to the actor, which is waiting asynchronously for the value to be bound.
|
void |
DataflowExpression.whenBound(MessageStream stream)
Send the bound data to provided stream when it becomes available
|
void |
DataflowExpression.wheneverBound(MessageStream stream)
Send all pieces of data bound in the future to the provided stream when it becomes available.
|
Constructor and Description |
---|
DataflowExpression.WaitingThread(java.lang.Thread thread,
DataflowExpression.WaitingThread previous,
java.lang.Object attachment,
MessageStream callback)
Creates a representation of the request to read the value once it is bound
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
DataflowOperatorActor
An operator's internal actor.
|
(package private) class |
DataflowProcessorActor
A base actor class for operators' and selectors' actors
|
(package private) class |
DataflowSelectorActor
An selector's internal actor.
|
(package private) class |
ForkingDataflowOperatorActor
An operator's internal actor.
|
(package private) class |
ForkingDataflowSelectorActor
An selector's internal actor.
|
Modifier and Type | Method and Description |
---|---|
MessageStream |
DataflowProcessorActor.send(java.lang.Object message)
Sends the message, ignoring exceptions caused by the actor not being active anymore
|
Modifier and Type | Field and Description |
---|---|
protected java.util.Collection<MessageStream> |
StreamCore.wheneverBoundListeners
A collection of listeners who need to be informed each time the stream is bound to a value
|
Modifier and Type | Method and Description |
---|---|
void |
DataflowStreamReadAdapter.getValAsync(MessageStream callback) |
void |
DataflowStreamReadAdapter.getValAsync(java.lang.Object attachment,
MessageStream callback) |
void |
DataflowStreamReadAdapter.whenBound(MessageStream stream) |
void |
DataflowStreamReadAdapter.wheneverBound(MessageStream stream) |
void |
StreamCore.wheneverBound(MessageStream stream) |
Constructor and Description |
---|
DataflowStream(java.util.Collection<MessageStream> wheneverBoundListeners,
java.util.Collection<DataflowChannelListener<T>> updateListeners) |
StreamCore(DataflowVariable<T> first,
java.util.Collection<MessageStream> wheneverBoundListeners,
java.util.Collection<DataflowChannelListener<T>> updateListeners) |
SyncDataflowStream(int parties,
java.util.Collection<MessageStream> wheneverBoundListeners,
java.util.Collection<DataflowChannelListener<T>> updateListeners)
Creates an empty stream with the specified listeners set
|