public abstract class ReplyingMessageStream extends Actor
Actor.MyRemoteHandle, Actor.RemoteActor
MessageStream.RemoteMessageStream, MessageStream.SendTo
Modifier and Type | Field and Description |
---|---|
private MessageStream |
sender
A list of senders for the currently processed messages
|
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 |
---|
ReplyingMessageStream() |
Modifier and Type | Method and Description |
---|---|
protected MessageStream |
getSender() |
protected void |
reply(java.lang.Object message)
Sends a reply to all currently processed messages.
|
protected void |
replyIfExists(java.lang.Object message)
Sends a reply to all currently processed messages, which have been sent by an actor.
|
protected void |
setSender(MessageStream sender) |
createActorMessage, createRemoteHandle, deregisterCurrentActorWithThread, getJoinLatch, getParallelGroup, handleException, handleInterrupt, handleStart, handleTermination, handleTimeout, hasBeenStopped, isActive, isActorThread, join, join, join, join, onStop, registerCurrentActorWithThread, sendAndContinue, sendAndPromise, setParallelGroup, silentStart, start, stop, sweepNextMessage, terminate, threadBoundActor
call, getRemoteClass, leftShift, reInterrupt, send, send, send, sendAndWait, sendAndWait, sendAndWait
getOrCreateSerialHandle, writeReplace
private static final long serialVersionUID
private MessageStream sender
protected final MessageStream getSender()
protected final void setSender(MessageStream sender)
protected final void reply(java.lang.Object message)
message
- reply messageActorReplyException
- If some of the replies failed to be sent.protected final void replyIfExists(java.lang.Object message)
message
- reply message