|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.curjent.impl.agent.MessageFuture
public class MessageFuture
Delegates all Future
calls to a Message
receiver.
Used to isolate a message from client synchronization and casting.
Field Summary | |
---|---|
protected Message |
message
Call receiver. |
Constructor Summary | |
---|---|
MessageFuture(Message message)
Saves the receiver. |
Method Summary | |
---|---|
boolean |
cancel(boolean interruptably)
Delegates to Message.cancel(boolean) . |
Object |
get()
Delegates to Message.get(long, TimeUnit) . |
Object |
get(long timeout,
TimeUnit unit)
Delegates to Message.get(long, TimeUnit) . |
boolean |
isCancelled()
Returns true if Message.getCompletion() returns
CallCompletion.FUTURE_CANCELLED . |
boolean |
isDone()
Delegates to Message.isFinished() . |
String |
toString()
Returns the message's interface method signature. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final Message message
Constructor Detail |
---|
public MessageFuture(Message message)
Method Detail |
---|
public final boolean cancel(boolean interruptably)
Message.cancel(boolean)
.
cancel
in interface Future<Object>
public final Object get() throws InterruptedException, ExecutionException
Message.get(long, TimeUnit)
.
get
in interface Future<Object>
InterruptedException
ExecutionException
public final Object get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
Message.get(long, TimeUnit)
.
get
in interface Future<Object>
InterruptedException
ExecutionException
TimeoutException
public final boolean isCancelled()
true
if Message.getCompletion()
returns
CallCompletion.FUTURE_CANCELLED
.
isCancelled
in interface Future<Object>
public final boolean isDone()
Message.isFinished()
.
isDone
in interface Future<Object>
public final String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |