K
- public class FutureLaterJoin<K extends BaseFuture> extends BaseFutureImpl<FutureLaterJoin<K>> implements BaseFuture
BaseFuture.FutureType
completed, 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> |
getFuturesDone()
Returns the finished futures.
|
K |
getLastSuceessFuture() |
addCancellation, addListener, addListener, await, await, awaitListeners, awaitUninterruptibly, awaitUninterruptibly, cancel, getFailedReason, getType, isCompleted, isFailed, isSuccess, notifyListerenrs, removeListener, self, setCompletedAndNotify, setFailed, setFailed, setFailed, setFailed, setFailed
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addCancellation, addListener, addListener, await, await, awaitListeners, awaitUninterruptibly, awaitUninterruptibly, getFailedReason, getType, isCompleted, isFailed, isSuccess, removeListener, setFailed, setFailed, setFailed, setFailed, setFailed
cancel
public 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> getFuturesDone()
public K getLastSuceessFuture()
Copyright © 2013. All Rights Reserved.