All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.aglet.FutureReply

java.lang.Object
   |
   +----com.ibm.aglet.FutureReply

public abstract class FutureReply
extends Object
The FutureReply class is a abstract class for the result of a future message.

See Also:
sendAsyncMessage

Constructor Index

 o FutureReply()

Method Index

 o getBooleanReply()
Gets the reply as a primitive boolean.
 o getCharReply()
Gets the reply as a primitive char.
 o getDoubleReply()
Gets the reply as a primitive double.
 o getFloatReply()
Gets the reply as a primitive float.
 o getIntReply()
Gets the reply as a primitive integer.
 o getLongReply()
Gets the reply as a primitive log.
 o getReply()
If the message was not handled the receiver, MessageNotHandled exception is raised.
 o isAvailable()
Checks if the reply is available or not.
 o waitForReply()
Waits for a reply until the reply is available.
 o waitForReply(long)
Waits for a reply with specific timeout value.

Constructors

 o FutureReply
 public FutureReply()

Methods

 o 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:
sendReply
 o getIntReply
 public int getIntReply() throws MessageException, NotHandledException
Gets the reply as a primitive integer.

 o getDoubleReply
 public double getDoubleReply() throws MessageException, NotHandledException
Gets the reply as a primitive double.

 o getFloatReply
 public float getFloatReply() throws MessageException, NotHandledException
Gets the reply as a primitive float.

 o getBooleanReply
 public boolean getBooleanReply() throws MessageException, NotHandledException
Gets the reply as a primitive boolean.

 o getCharReply
 public char getCharReply() throws MessageException, NotHandledException
Gets the reply as a primitive char.

 o getLongReply
 public long getLongReply() throws MessageException, NotHandledException
Gets the reply as a primitive log.

 o isAvailable
 public abstract boolean isAvailable()
Checks if the reply is available or not.

Returns:
boolean true if the reply has been set.
 o waitForReply
 public abstract void waitForReply(long timeout)
Waits for a reply with specific timeout value.

Parameters:
timeout - the maximum time to wait in milliseconds
 o waitForReply
 public abstract void waitForReply()
Waits for a reply until the reply is available.


All Packages  Class Hierarchy  This Package  Previous  Next  Index