Constructor and Description |
---|
FixedFuture(Result result) |
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 FixedFuture(Result result)
public boolean cancel(boolean mayInterruptIfRunning)
public Result get()
IFuture
public Result get(long timeout, TimeUnit unit)
IFuture
public 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.