|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FutureResult<T extends Result>
Method Summary | |
---|---|
T |
await()
Awaits a result with no timeout. |
T |
await(long timeout)
Awaits a result with a timeout in milliseconds. |
T |
awaitUninterruptibly()
Awaits a result uninterruptibly with no timeout. |
T |
awaitUninterruptibly(long timeout)
Awaits a result uninterruptibly with a timeout in milliseconds. |
void |
registerListener(FutureResultListener<T> futureResultListener)
Registers a listener to receive a callback when the future has been completed. |
void |
unregisterListener(FutureResultListener<T> futureResultListener)
Unregisters a listener to exclude from receiving a callback when the future has been completed. |
Method Detail |
---|
void registerListener(FutureResultListener<T> futureResultListener)
futureResultListener
- void unregisterListener(FutureResultListener<T> futureResultListener)
futureResultListener
- T await() throws java.lang.InterruptedException
java.lang.InterruptedException
T await(long timeout) throws java.lang.InterruptedException
java.lang.InterruptedException
T awaitUninterruptibly()
T awaitUninterruptibly(long timeout)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |