K - public class FutureLateJoin<K extends BaseFuture> extends BaseFutureImpl<FutureLateJoin<K>> 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 |
|---|---|
boolean |
add(K future)
Add a future when ready.
|
List<K> |
futuresDone()
Returns the finished futures.
|
List<K> |
futuresSubmitted() |
K |
lastSuceessFuture() |
addCancel, addListener, addListener, await, await, awaitListeners, awaitListenersUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, cancel, completedAndNotify, failed, failed, failed, failed, failed, failedReason, isCompleted, isFailed, isSuccess, notifyListeners, removeCancel, removeListener, self, self, typeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddCancel, addListener, addListener, await, await, awaitListeners, awaitListenersUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, failed, failed, failed, failed, failed, failedReason, isCompleted, isFailed, isSuccess, removeCancel, removeListener, typepublic 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 boolean add(K future)
future - The future to be added.public List<K> futuresDone()
public K lastSuceessFuture()
Copyright © 2014. All rights reserved.