Future
Future
Deprecated
Use PromiseCombiner#PromiseCombiner(EventExecutor)
.
GenericFutureListener
implementation which consolidates multiple Future
s
into one, by listening to individual Future
s and producing an aggregated result
(success/failure) when all Future
s have completed.
Modifier and Type | Field and Description |
---|---|
private final Promise | |
private final boolean | |
private Set |
Access | Constructor and Description |
---|---|
public | PromiseAggregator(Promise<Void>
the aggregatePromise, boolean Promise to notifytrue to fail pending promises, false to leave them unaffectedCreates a new instance. |
public | PromiseAggregator(Promise<Void> aggregatePromise)
|
Modifier and Type | Method and Description |
---|---|
public final PromiseAggregator | add(Promise<V>... promises)
Deprecated
as a consequence of
Add the given PromiseAggregator being deprecated.
Promise s to the aggregator.
|
public synchronized void | operationComplete(F
the source future)Future which called this callbackImplements io. Future has been completed.
|
aggregatePromise | back to summary |
---|---|
private final Promise<?> aggregatePromise |
failPending | back to summary |
---|---|
private final boolean failPending |
pendingPromises | back to summary |
---|---|
private Set<Promise<V>> pendingPromises |
PromiseAggregator | back to summary |
---|---|
public PromiseAggregator(Promise<Void> aggregatePromise, boolean failPending) Creates a new instance. |
PromiseAggregator | back to summary |
---|---|
public PromiseAggregator(Promise<Void> aggregatePromise) See |
add | back to summary |
---|---|
public final PromiseAggregator Deprecated as a consequence of Add the given
|
operationComplete | back to summary |
---|---|
public synchronized void operationComplete(F future) throws Exception Implements io. Doc from io. Invoked when the operation associated with the |