public static interface Index.Result
await()
simply to block on the
result being computed.Modifier and Type | Method and Description |
---|---|
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.
|
void await()
RuntimeInterruptedException
- if interruptedRuntimeException
- if the underlying operation caught an
exceptionError
- 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 inRuntimeInterruptedException
- if interruptedRuntimeException
- if the underlying operation caught an
exceptionError
- if the underlying operation caught an errorboolean isDone()
await()
and
await(long, TimeUnit)
will not block.Copyright © 2002-2015 Atlassian. All Rights Reserved.