|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface FutureResult
A handle for an asynchronous request execution. This allows to wait for request termination, get the result or the exception of the execution.
| Method Summary | |
|---|---|
java.lang.Exception |
getException()
Get the exception of the execution, if one was thrown. |
java.lang.Object |
getResult()
Get the result of the execution. |
boolean |
getRunning()
Returns true if the execution is still active, and false if not. |
java.lang.Object |
waitForResult()
Wait for execution to terminat, returning the execution result, if one is available. |
java.lang.Object |
waitForResult(long timeout)
Wait for a specific ammount of thime for the execution to terminate, returning the execution result, if one is available. |
| Method Detail |
|---|
java.lang.Object getResult()
java.lang.Exception getException()
boolean getRunning()
java.lang.Object waitForResult()
throws java.lang.InterruptedException
java.lang.InterruptedException - if we were interrupted by some other thread
java.lang.Object waitForResult(long timeout)
throws java.lang.InterruptedException
timeout - the number of milliseconds to wait
java.lang.InterruptedException - if we were interrupted by some other thread
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||