K - public class FutureLaterJoin<K extends BaseFuture> extends BaseFutureImpl<FutureLaterJoin<K>> implements BaseFuture
BaseFuture.FutureTypecompleted, lock, reason, type| Constructor and Description |
|---|
FutureLaterJoin()
Create this future.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(K future)
Add a future when ready.
|
void |
done()
If no more futures are added, done() must be called to evaluate the
results.
|
void |
done(int minSuccess)
If no more futures are added, done() must be called to evaluate the
results.
|
List<K> |
futuresDone()
Returns the finished futures.
|
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 boolean add(K future)
future - The future to be added.public void done()
public void done(int minSuccess)
minSuccess - The number of minimum futures that needs to be successful to
consider this future as a success.public List<K> futuresDone()
public K lastSuceessFuture()
Copyright © 2014. All rights reserved.