public class RunnableBackedBlockingActor extends BlockingActor
Modifier and Type | Class and Description |
---|---|
private static class |
RunnableBackedBlockingActor.RunnableBackedPooledActorDelegate |
Actor.MyRemoteHandle, Actor.RemoteActor
MessageStream.RemoteMessageStream, MessageStream.SendTo
Modifier and Type | Field and Description |
---|---|
private java.lang.Runnable |
action |
private static long |
serialVersionUID |
AN_ACTOR_CAN_ONLY_RECEIVE_ONE_MESSAGE_AT_A_TIME
S_ACTIVE_MASK, S_FINISHED_MASK, S_FINISHING_MASK, S_NOT_STARTED, S_RUNNING, S_STOP_TERMINATE_MASK, S_STOPPED, S_STOPPING, S_TERMINATED, S_TERMINATING, stopFlag, stopFlagUpdater
ACTOR_HAS_ALREADY_BEEN_STARTED, CANNOT_SEND_REPLIES_NO_SENDER_HAS_BEEN_REGISTERED, currentThread, parallelGroup, START_MESSAGE, STOP_MESSAGE, TERMINATE_MESSAGE, TIMEOUT, TIMEOUT_MESSAGE, timer
serialHandle
Constructor and Description |
---|
RunnableBackedBlockingActor(java.lang.Runnable handler) |
Modifier and Type | Method and Description |
---|---|
protected void |
act()
This method represents the body of the actor.
|
protected void |
setAction(java.lang.Runnable handler) |
handleStart, receive, receive, receive, receiveImpl, receiveImpl
checkStopTerminate, handleTermination, hasBeenStopped, isActive, pollMessage, receive, receive, receive, run, send, setParallelGroup, silentStart, start, stop, sweepNextMessage, takeMessage, takeMessage, terminate
getSender, reply, replyIfExists, setSender
createActorMessage, createRemoteHandle, deregisterCurrentActorWithThread, getJoinLatch, getParallelGroup, handleException, handleInterrupt, handleTimeout, isActorThread, join, join, join, join, onStop, registerCurrentActorWithThread, sendAndContinue, sendAndPromise, threadBoundActor
call, getRemoteClass, leftShift, reInterrupt, send, send, sendAndWait, sendAndWait, sendAndWait
getOrCreateSerialHandle, writeReplace
private static final long serialVersionUID
private java.lang.Runnable action
public RunnableBackedBlockingActor(java.lang.Runnable handler)
protected final void setAction(java.lang.Runnable handler)
protected final void act()
SequentialProcessingActor
Actor
's
message handling code.act
in class SequentialProcessingActor