A base actor class for operators' and selectors' actors
Modifiers | Name | Description |
---|---|---|
protected static java.lang.String |
CANNOT_OBTAIN_THE_SEMAPHORE_TO_FORK_OPERATOR_S_BODY |
|
protected groovy.lang.Closure |
code |
|
protected java.util.List |
inputs |
|
protected java.util.List |
outputs |
|
protected DataflowProcessor |
owningProcessor |
|
protected boolean |
stoppingGently |
Fields inherited from class | Fields |
---|---|
class StaticDispatchActor |
serialVersionUID |
class AbstractLoopingActor |
core, currentSender, currentTimerTask, serialVersionUID, stoppedFlag, terminatedFlag, terminatingFlag, timeoutCounter |
class Actor |
ACTOR_HAS_ALREADY_BEEN_STARTED, AFTER_START, CANNOT_SEND_REPLIES_NO_SENDER_HAS_BEEN_REGISTERED, EMPTY_ARGUMENTS, ON_DELIVERY_ERROR, RESPONDS_TO, START_MESSAGE, STOP_MESSAGE, TERMINATE_MESSAGE, TIMEOUT, TIMEOUT_MESSAGE, currentActorPerThread, currentThread, joinLatch, onStop, parallelGroup, serialVersionUID, timer |
class MessageStream |
serialVersionUID |
class WithSerialId |
serialHandle, serialVersionUID |
Constructor and description |
---|
DataflowProcessorActor
(DataflowProcessor owningProcessor, PGroup group, java.util.List outputs, java.util.List inputs, groovy.lang.Closure code) |
Type | Name and description |
---|---|
void |
afterStart() |
void |
afterStop() |
void |
checkPoison(java.lang.Object data) Handles the poisson message. |
protected java.lang.Object |
fireMessageArrived(java.lang.Object result, int index, boolean controlMessage) |
protected void |
forwardPoisonPill(java.lang.Object data) |
static boolean |
isControlMessage(java.lang.Object message) |
void |
onException(java.lang.Throwable e) |
void |
onMessage(java.lang.Object message) All messages unhandled by sub-classes will result in an exception being thrown |
void |
registerChannelListenersToAllInputs(DataflowChannelListener<java.lang.Object> handler) Registers the provided handler to all input channels |
void |
reportException(java.lang.Throwable e) |
MessageStream |
send(java.lang.Object message) Sends the message, ignoring exceptions caused by the actor not being active anymore |
Handles the poisson message. After receiving the poisson a dataflow operator will send the poisson to all its output channels and terminate.
data
- The poisson to re-sendAll messages unhandled by sub-classes will result in an exception being thrown
message
- The unhandled messageRegisters the provided handler to all input channels
handler
- The closure to invoke whenever a value gets bound to any of the input channelsSends the message, ignoring exceptions caused by the actor not being active anymore
message
- The message to sendCopyright © 2008–2014 Václav Pech. All Rights Reserved.