| Constructor and Description |
|---|
FutureWrapper(IFuture<RESULT> impl) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
RESULT |
get()
Waits if necessary for the computation to complete, and then
retrieves its result.
|
RESULT |
get(long timeout,
TimeUnit unit)
Waits if necessary for at most the given time for the computation
to complete, and then retrieves its result, if available.
|
boolean |
isCancelled() |
boolean |
isDone() |
public boolean cancel(boolean mayInterruptIfRunning)
public RESULT get()
IFuturepublic RESULT get(long timeout, TimeUnit unit)
IFuturepublic boolean isCancelled()
isCancelled in interface Future<RESULT>Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.