|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.aglet.FutureReply
The FutureReply class is a abstract class for the result of a future message.
AgletProxy.sendAsyncMessage(com.ibm.aglet.Message)
Constructor Summary | |
FutureReply()
|
Method Summary | |
protected abstract void |
addedTo(ReplySet set)
|
boolean |
getBooleanReply()
Gets the reply as a primitive boolean. |
char |
getCharReply()
Gets the reply as a primitive char. |
double |
getDoubleReply()
Gets the reply as a primitive double. |
float |
getFloatReply()
Gets the reply as a primitive float. |
int |
getIntReply()
Gets the reply as a primitive integer. |
long |
getLongReply()
Gets the reply as a primitive long. |
abstract java.lang.Object |
getReply()
If the message was not handled the receiver, MessageNotHandled exception is raised. |
abstract boolean |
isAvailable()
Checks if the reply is available or not. |
abstract void |
waitForReply()
Waits for a reply until the reply is available. |
abstract void |
waitForReply(long timeout)
Waits for a reply with specific timeout value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FutureReply()
Method Detail |
protected abstract void addedTo(ReplySet set)
public boolean getBooleanReply() throws MessageException, NotHandledException
public char getCharReply() throws MessageException, NotHandledException
public double getDoubleReply() throws MessageException, NotHandledException
public float getFloatReply() throws MessageException, NotHandledException
public int getIntReply() throws MessageException, NotHandledException
public long getLongReply() throws MessageException, NotHandledException
public abstract java.lang.Object getReply() throws MessageException, NotHandledException
NotHandledException
- if the message was not handled.Message.sendReply()
public abstract boolean isAvailable()
public abstract void waitForReply()
public abstract void waitForReply(long timeout)
timeout
- the maximum time to wait in milliseconds
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |