public class RemoteActor extends Actor implements RemoteSerialized
| Modifier and Type | Class and Description |
|---|---|
static class |
RemoteActor.MyRemoteHandle |
static class |
RemoteActor.StopActorMsg |
static class |
RemoteActor.TerminateActorMsg |
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, timerserialHandle| Constructor and Description |
|---|
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, threadBoundActorcall, getRemoteClass, leftShift, send, send, sendAndWait, sendAndWait, sendAndWaitgetOrCreateSerialHandle, writeReplaceprivate final RemoteHost remoteHost
private static final long serialVersionUID
public RemoteActor(SerialContext host, DataflowExpression<java.lang.Object> jointLatch)
public Actor silentStart()
ActorsilentStart in class Actorpublic Actor start()
Actorpublic Actor stop()
Actorpublic Actor terminate()
Actorpublic boolean isActive()
Actorprotected boolean hasBeenStopped()
hasBeenStopped in class Actorprotected ActorMessage sweepNextMessage()
ActorsweepNextMessage in class Actorpublic MessageStream send(java.lang.Object message)
MessageStreamsend in class MessageStreammessage - message to send