Class PromiseAggregator<V, F extends Future<V>>
java.lang.Object
io.netty.util.concurrent.PromiseAggregator<V,F>
- All Implemented Interfaces:
GenericFutureListener<F>, java.util.EventListener
- Direct Known Subclasses:
ChannelPromiseAggregator
@Deprecated
public class PromiseAggregator<V, F extends Future<V>>
extends java.lang.Object
implements GenericFutureListener<F>
Deprecated.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Promise<?> Deprecated.private final booleanDeprecated.Deprecated. -
Constructor Summary
ConstructorsConstructorDescriptionPromiseAggregator(Promise<java.lang.Void> aggregatePromise) Deprecated.PromiseAggregator(Promise<java.lang.Void> aggregatePromise, boolean failPending) Deprecated.Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionfinal PromiseAggregator<V, F> Deprecated.Add the givenPromises to the aggregator.voidoperationComplete(F future) Deprecated.Invoked when the operation associated with theFuturehas been completed.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
aggregatePromise
Deprecated. -
failPending
private final boolean failPendingDeprecated. -
pendingPromises
-
-
Constructor Details
-
PromiseAggregator
-
PromiseAggregator
Deprecated.SeePromiseAggregator(Promise, boolean). DefaultsfailPendingto true.
-
-
Method Details
-
add
-
operationComplete
Deprecated.Description copied from interface:GenericFutureListenerInvoked when the operation associated with theFuturehas been completed.- Specified by:
operationCompletein interfaceGenericFutureListener<V>- Parameters:
future- the sourceFuturewhich called this callback- Throws:
java.lang.Exception
-
PromiseCombiner(EventExecutor).GenericFutureListenerimplementation which consolidates multipleFutures into one, by listening to individualFutures and producing an aggregated result (success/failure) when allFutures have completed.