public class CombinedBooleanFuture extends Object implements IFuture<Boolean>
During construction of the instance of this class you have to specify an array of booleans you want to combine - then all methods will wait for all futures to end (e.g. get(), etc.).
Note that you will probably want to use getAll() method to get respective Future results.
| Constructor and Description |
|---|
CombinedBooleanFuture(IFuture<Boolean>[] futures) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
Boolean |
get()
Waits if necessary for the computation to complete, and then
retrieves its result.
|
Boolean |
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[] |
getAll(long timeout,
TimeUnit unit) |
Future<Boolean>[] |
getFutures() |
boolean |
isCancelled() |
boolean |
isDone() |
public boolean cancel(boolean mayInterruptIfRunning)
public Boolean get()
IFuturepublic Boolean get(long timeout, TimeUnit unit)
IFuturepublic boolean isCancelled()
isCancelled in interface Future<Boolean>Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.