public static class Actor.RemoteActor extends Actor implements RemoteSerialized
Modifier and Type | Class and Description |
---|---|
static class |
Actor.RemoteActor.StopActorMsg |
static class |
Actor.RemoteActor.TerminateActorMsg |
Actor.MyRemoteHandle, Actor.RemoteActor
MessageStream.RemoteMessageStream, MessageStream.SendTo
Modifier and Type | Field and Description |
---|---|
private RemoteHost |
remoteHost |
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 |
---|
Actor.RemoteActor(SerialContext host,
DataflowExpression<java.lang.Object> jointLatch) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
hasBeenStopped() |
boolean |
isActive()
Checks the current status of the Actor.
|
MessageStream |
send(java.lang.Object message)
Send message to stream and return immediately
|
Actor |
silentStart()
Starts the Actor without sending the START_MESSAGE message to speed the start-up.
|
Actor |
start()
Starts the Actor and sends it the START_MESSAGE to run any afterStart handlers.
|
Actor |
stop()
Send message to stop to the Actor.
|
protected ActorMessage |
sweepNextMessage()
Removes the head of the message queue
|
Actor |
terminate()
Terminates the Actor.
|
createActorMessage, createRemoteHandle, deregisterCurrentActorWithThread, getJoinLatch, getParallelGroup, handleException, handleInterrupt, handleStart, handleTermination, handleTimeout, isActorThread, join, join, join, join, onStop, registerCurrentActorWithThread, sendAndContinue, sendAndPromise, setParallelGroup, sweepQueue, threadBoundActor
call, getRemoteClass, leftShift, send, send, sendAndWait, sendAndWait, sendAndWait
getOrCreateSerialHandle, writeReplace
private final RemoteHost remoteHost
private static final long serialVersionUID
public Actor.RemoteActor(SerialContext host, DataflowExpression<java.lang.Object> jointLatch)
public Actor silentStart()
Actor
silentStart
in class Actor
public Actor start()
Actor
public Actor stop()
Actor
public Actor terminate()
Actor
public boolean isActive()
Actor
protected boolean hasBeenStopped()
hasBeenStopped
in class Actor
protected ActorMessage sweepNextMessage()
Actor
sweepNextMessage
in class Actor
public MessageStream send(java.lang.Object message)
MessageStream
send
in class MessageStream
message
- message to send