Class aglet.FutureReply
All Packages Class Hierarchy This Package Previous Next Index
Class aglet.FutureReply
java.lang.Object
|
+----aglet.FutureReply
- public class FutureReply
- extends Object
The FutureReply class is a abstract class for the
result of a future message.
- See Also:
- sendAsyncMessage
-
FutureReply()
-
-
addedTo(ReplySet)
-
-
getBooleanReply()
- Gets the reply as a primitive boolean
-
getCharReply()
- Gets the reply as a primitive char
-
getDoubleReply()
- Gets the reply as a primitive double
-
getFloatReply()
- Gets the reply as a primitive float
-
getIntReply()
- Gets the reply as a primitive integer
-
getLongReply()
- Gets the reply as a primitive log
-
getReply()
- If the message was not handled the receiver, MessageNotHandled
exception is raised.
-
isAvailable()
- Checks if the reply is available or not.
-
waitForReply()
- Waits for a reply until the reply is available
-
waitForReply(long)
- Waits for a reply with specific timeout value.
FutureReply
public FutureReply()
getReply
public abstract Object getReply() throws MessageException, NotHandledException
- If the message was not handled the receiver, MessageNotHandled
exception is raised.
- Returns:
- reply object.
- Throws: NotHandledException
- if the message was not handled.
- See Also:
- setReply
getIntReply
public int getIntReply() throws MessageException, NotHandledException
- Gets the reply as a primitive integer
getDoubleReply
public double getDoubleReply() throws MessageException, NotHandledException
- Gets the reply as a primitive double
getFloatReply
public float getFloatReply() throws MessageException, NotHandledException
- Gets the reply as a primitive float
getBooleanReply
public boolean getBooleanReply() throws MessageException, NotHandledException
- Gets the reply as a primitive boolean
getCharReply
public char getCharReply() throws MessageException, NotHandledException
- Gets the reply as a primitive char
getLongReply
public long getLongReply() throws MessageException, NotHandledException
- Gets the reply as a primitive log
isAvailable
public abstract boolean isAvailable()
- Checks if the reply is available or not.
- Returns:
- boolean true if the reply has been set.
waitForReply
public abstract void waitForReply(long timeout)
- Waits for a reply with specific timeout value.
- Parameters:
- timeout - the maximum time to wait in milliseconds
waitForReply
public abstract void waitForReply()
- Waits for a reply until the reply is available
addedTo
protected abstract void addedTo(ReplySet set)
All Packages Class Hierarchy This Package Previous Next Index