K - public class FutureForkJoin<K extends BaseFuture> extends BaseFutureImpl implements BaseFuture
BaseFuture.FutureTypecompleted, lock, reason, type| Constructor and Description |
|---|
FutureForkJoin(int nrFinishFuturesSuccess,
boolean cancelFuturesOnFinish,
K... forks)
Create a future fork join object
|
FutureForkJoin(K... forks)
Facade if we expect everything to return successfully
|
| Modifier and Type | Method and Description |
|---|---|
List<K> |
getCompleted()
Returns a list of evaluated futures.
|
String |
getFailedReason()
The default failed reason is Unknown.
|
K |
getLast()
Returns the last evaluated future.
|
int |
getSuccessCounter()
Returns the number of successful finished futures
|
addCancellation, addListener, await, await, awaitUninterruptibly, awaitUninterruptibly, cancel, getType, isCompleted, isFailed, isSuccess, notifyListerenrs, removeCancellation, removeListener, setCompletedAndNotify, setFailedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddCancellation, addListener, await, await, awaitUninterruptibly, awaitUninterruptibly, getType, isCompleted, isFailed, isSuccess, removeCancellation, removeListener, setFailedcancelpublic FutureForkJoin(K... forks)
forks - The futurespublic FutureForkJoin(int nrFinishFuturesSuccess,
boolean cancelFuturesOnFinish,
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 future array, that may contain null futures.public String getFailedReason()
BaseFuturegetFailedReason in interface BaseFuturegetFailedReason in class BaseFutureImplpublic K getLast()
public List<K> getCompleted()
getLast().public int getSuccessCounter()
Copyright © 2011. All Rights Reserved.