K - public class FutureLateJoin<K extends BaseFuture> extends BaseFutureImpl implements BaseFuture
BaseFuture.FutureTypecompleted, lock, reason, type| Constructor and Description |
|---|
FutureLateJoin(int nrMaxFutures)
Create this future and set the minSuccess to the number of expected
futures.
|
FutureLateJoin(int nrMaxFutures,
int minSuccess)
Create this future.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(K future)
Add a future when ready.
|
List<K> |
getFuturesDone()
Returns the finished futures.
|
addCancellation, addListener, await, await, awaitUninterruptibly, awaitUninterruptibly, cancel, getFailedReason, getType, isCompleted, isFailed, isSuccess, notifyListerenrs, removeCancellation, removeListener, setCompletedAndNotify, setFailedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddCancellation, addListener, await, await, awaitUninterruptibly, awaitUninterruptibly, getFailedReason, getType, isCompleted, isFailed, isSuccess, removeCancellation, removeListener, setFailedcancelpublic FutureLateJoin(int nrMaxFutures)
nrMaxFutures - The number of expected futures.public FutureLateJoin(int nrMaxFutures,
int minSuccess)
nrMaxFutures - The number of expected futures.minSuccess - The number of expected successful futures.public void add(K future)
future - The future to be added.Copyright © 2011. All Rights Reserved.