K - public class FutureForkJoin<K extends BaseFuture> extends BaseFutureImpl<FutureForkJoin<K>> implements BaseFuture
BaseFuture.FutureTypecompleted, lock, reason, type| Constructor and Description |
|---|
FutureForkJoin(AtomicReferenceArray<K> forks)
Facade if we expect everything to return successfully.
|
FutureForkJoin(int nrFinishFuturesSuccess,
boolean cancelFuturesOnFinish,
AtomicReferenceArray<K> forks)
Create a future fork join object.
|
| Modifier and Type | Method and Description |
|---|---|
List<K> |
completed()
Returns a list of evaluated futures.
|
K |
first() |
FutureDone<Void> |
futuresCompleted() |
K |
last()
Returns the last evaluated future.
|
int |
successCounter()
Returns the number of successful finished futures.
|
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 FutureForkJoin(AtomicReferenceArray<K> forks)
forks - The futures that can also be modified outside this class. If a future is finished the future in that
array will be set to null. A future may be initially null, which is considered a failure.public FutureForkJoin(int nrFinishFuturesSuccess,
boolean cancelFuturesOnFinish,
AtomicReferenceArray<K> forks)
nrFinishFuturesSuccess - Is the number of futures that we expect to succeed.cancelFuturesOnFinish - Tells use if we should cancel the remaining futures. For get() it makes sense to cancel, for store()
it does not.forks - The futures that can also be modified outside this class. If a future is finished the future in that
array will be set to null. A future may be initially null, which is considered a failure.public K last()
public K first()
public List<K> completed()
last().public int successCounter()
public FutureDone<Void> futuresCompleted()
Copyright © 2014. All rights reserved.