public final class InternalActor extends AbstractLoopingActor
Actor.MyRemoteHandle, Actor.RemoteActor
MessageStream.RemoteMessageStream, MessageStream.SendTo
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
METHOD_NAME_PREFIX |
private static java.lang.Object[] |
No_ARGS |
private static long |
serialVersionUID |
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 |
---|
InternalActor()
Just like DynamicDispatchActor, except that the actual method dispatch is static through the closure passed to the initialize() method.
|
Modifier and Type | Method and Description |
---|---|
static InternalActor |
create(java.lang.Object groupId) |
private static java.lang.Object |
handleCurrentMessage(java.lang.Object msg) |
void |
onMessage(java.lang.Object[] msg)
Handles incoming messages
|
(package private) DataflowVariable<java.lang.Object> |
submit(java.lang.Object... args)
A DataflowVariable is passed to the actor, which will bind it once the result is known.
|
(package private) java.lang.Object |
submitAndWait(java.lang.Object... args)
A DataflowVariable is passed to the actor, which will bind it once the result is known.
|
getSender, hasBeenStopped, initialize, isActive, isFair, makeFair, reply, replyIfExists, send, setParallelGroup, setTimeout, silentStart, start, stop, sweepNextMessage, terminate
createActorMessage, createRemoteHandle, deregisterCurrentActorWithThread, getJoinLatch, getParallelGroup, handleException, handleInterrupt, handleStart, handleTermination, handleTimeout, isActorThread, join, join, join, join, onStop, registerCurrentActorWithThread, sendAndContinue, sendAndPromise, threadBoundActor
call, getRemoteClass, leftShift, send, send, sendAndWait, sendAndWait, sendAndWait
getOrCreateSerialHandle, writeReplace
private static final long serialVersionUID
public static final java.lang.String METHOD_NAME_PREFIX
private static final java.lang.Object[] No_ARGS
public InternalActor()
DataflowVariable<java.lang.Object> submit(java.lang.Object... args)
args
- The method parametersjava.lang.Object submitAndWait(java.lang.Object... args) throws java.lang.Throwable
args
- The method parametersjava.lang.InterruptedException
- If the current thread gets interrupted while waiting for the internal actor to respondjava.lang.Throwable
- If the target method invoked asynchronously throws an exception.public void onMessage(java.lang.Object[] msg)
msg
- The message representing the requested method callprivate static java.lang.Object handleCurrentMessage(java.lang.Object msg)
public static InternalActor create(java.lang.Object groupId)