Represents a pending request for a reply from an actor.
- The type of expected reply message| Modifiers | Name | Description |
|---|---|---|
private boolean |
isSet |
|
private static long |
serialVersionUID |
|
private java.lang.Object |
value |
Holds a reference to the calling thread, while waiting, and the received reply message, once it has arrived. |
| Fields inherited from class | Fields |
|---|---|
class MessageStream |
serialVersionUID |
class WithSerialId |
serialHandle, serialVersionUID |
| Constructor and description |
|---|
private MessageStream.ResultWaiter
() |
| Type | Name and description |
|---|---|
V |
getResult()Retrieves the response blocking until a message arrives |
java.lang.Object |
getResult(long timeout, java.util.concurrent.TimeUnit units)Retrieves the response blocking until a message arrives |
void |
onDeliveryError(java.lang.Object msg)Handle cases when the message sent to the actor doesn't get delivered |
private void |
rethrowException() |
MessageStream |
send(java.lang.Object message)Accepts the message as a reply and wakes up the sleeping thread. |
| Methods inherited from class | Name |
|---|---|
class MessageStream |
call, getRemoteClass, leftShift, reInterrupt, send, send, send, sendAndWait, sendAndWait, sendAndWait |
class WithSerialId |
createRemoteHandle, getOrCreateSerialHandle, getRemoteClass, writeReplace |
class java.lang.Object |
java.lang.Object#wait(), java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Holds a reference to the calling thread, while waiting, and the received reply message, once it has arrived.
Retrieves the response blocking until a message arrives
Retrieves the response blocking until a message arrives
timeout - How long to waitunits - Unit for the timeoutHandle cases when the message sent to the actor doesn't get delivered
msg - The message that failed to get deliveredAccepts the message as a reply and wakes up the sleeping thread.
message - message to sendCopyright © 2008–2014 Václav Pech. All Rights Reserved.