PromiseCombiner.PromiseCombiner(EventExecutor).
GenericFutureListener implementation which consolidates multiple Futures
into one, by listening to individual Futures and producing an aggregated result
(success/failure) when all Futures have completed.@Deprecated public class PromiseAggregator<V,F extends Future<V>> extends java.lang.Object implements GenericFutureListener<F>
| 构造器和说明 |
|---|
PromiseAggregator(Promise<java.lang.Void> aggregatePromise)
已过时。
|
PromiseAggregator(Promise<java.lang.Void> aggregatePromise,
boolean failPending)
已过时。
Creates a new instance.
|
| 限定符和类型 | 方法和说明 |
|---|---|
PromiseAggregator<V,F> |
add(Promise<V>... promises)
已过时。
Add the given
Promises to the aggregator. |
void |
operationComplete(F future)
已过时。
Invoked when the operation associated with the
Future has been completed. |
public PromiseAggregator(Promise<java.lang.Void> aggregatePromise, boolean failPending)
aggregatePromise - the Promise to notifyfailPending - true to fail pending promises, false to leave them unaffectedpublic PromiseAggregator(Promise<java.lang.Void> aggregatePromise)
PromiseAggregator(Promise, boolean).
Defaults failPending to true.@SafeVarargs public final PromiseAggregator<V,F> add(Promise<V>... promises)
Promises to the aggregator.public void operationComplete(F future) throws java.lang.Exception
GenericFutureListenerFuture has been completed.operationComplete 在接口中 GenericFutureListener<F extends Future<V>>future - the source Future which called this callbackjava.lang.Exception