|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface provides methods to update a future object used to handle an asynchronous method invocation.
This interface is not intended to be used by end-user.
This interface is dedicated to set some fields of its implementation
business part such as the result
or the exception
thrown during the asynchronous call.
Method Summary | |
void |
setCalleeThread(ThreadOp callee)
Set the thread which has been created for the invocation of the method. |
void |
setResult(Object result,
Throwable throwable)
Set the result of the asynchronous method invocation. |
Method Detail |
public void setResult(Object result, Throwable throwable)
Set the result of the asynchronous method invocation.
The result may be either the returned value of the method or the thrown exception.
Result must be considered available after this call.
result
- the result returned by an asynchronous method invocation,
which can be null
.throwable
- the exception thrown by an asynchronous method
invocation, a null
value is considered as no exception has
been thrown.public void setCalleeThread(ThreadOp callee)
Set the thread which has been created for the invocation of the method.
callee
- the thread which has been created for the invocation of the
method
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |