|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface Index.Result
The payload is unimportant. Call await()
simply to block on the
result being computed.
Method Summary | |
---|---|
void |
await()
Await the result of the operation. |
boolean |
await(long timeout,
TimeUnit unit)
Await the result of the operation for the specified time, throwing a TimeoutException if the timeout is reached. |
boolean |
isDone()
Has the operation completed yet. |
Method Detail |
---|
void await()
RuntimeInterruptedException
- if interrupted
RuntimeException
- if the underlying operation caught an
exception
Error
- if the underlying operation caught an errorboolean await(long timeout, TimeUnit unit)
TimeoutException
if the timeout is reached.
timeout
- the amount to waitunit
- the unit to count the timeout in
RuntimeInterruptedException
- if interrupted
RuntimeException
- if the underlying operation caught an
exception
Error
- if the underlying operation caught an errorboolean isDone()
await()
and
await(long, TimeUnit)
will not block.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |