LazyFuture
Single threaded lazy future.
| Methods |
| boolean |
cancel(boolean mayInterruptIfRunning)
|
| boolean |
cancel(boolean mayInterruptIfRunning)
|
| T |
get()
|
| T |
get() throws InterruptedException, ExecutionException
|
| T |
get(long timeout, TimeUnit unit)
|
| T |
get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException
|
| boolean |
isCancelled()
|
| boolean |
isCancelled()
|
| boolean |
isDone()
|
| boolean |
isDone()
|
| boolean |
reset()
Reset this future to the initial state.
|
| boolean |
reset()
Reset this future to the initial state.
Returns:
{@code false} if it was already in initial state
|
| T |
run()
Run computation and produce the result.
|
| T |
run() throws Exception
Run computation and produce the result.
Returns:
the result of computation
|
|