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 Object implements GenericFutureListener<F>
| Constructor and Description |
|---|
PromiseAggregator(Promise<Void> aggregatePromise)
Deprecated.
|
PromiseAggregator(Promise<Void> aggregatePromise,
boolean failPending)
Deprecated.
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
PromiseAggregator<V,F> |
add(Promise<V>... promises)
Deprecated.
Add the given
Promises to the aggregator. |
void |
operationComplete(F future)
Deprecated.
Invoked when the operation associated with the
Future has been completed. |
public PromiseAggregator(Promise<Void> aggregatePromise, boolean failPending)
aggregatePromise - the Promise to notifyfailPending - true to fail pending promises, false to leave them unaffectedpublic PromiseAggregator(Promise<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 Exception
GenericFutureListenerFuture has been completed.operationComplete in interface GenericFutureListener<F extends Future<V>>future - the source Future which called this callbackExceptionCopyright © 2008–2025 The Netty Project. All rights reserved.