public final class ChannelPromiseAggregator extends Object implements ChannelFutureListener
CLOSE, CLOSE_ON_FAILURE, FIRE_EXCEPTION_ON_FAILURE
Constructor and Description |
---|
ChannelPromiseAggregator(ChannelPromise aggregatePromise)
Instance an new
ChannelPromiseAggregator |
Modifier and Type | Method and Description |
---|---|
ChannelPromiseAggregator |
add(ChannelPromise... promises)
Add the given
ChannelPromise s to the aggregator. |
void |
operationComplete(ChannelFuture future)
Invoked when the operation associated with the
Future has been completed. |
public ChannelPromiseAggregator(ChannelPromise aggregatePromise)
ChannelPromiseAggregator
aggregatePromise
- the ChannelPromise
to notifypublic ChannelPromiseAggregator add(ChannelPromise... promises)
ChannelPromise
s to the aggregator.public void operationComplete(ChannelFuture future) throws Exception
GenericFutureListener
Future
has been completed.operationComplete
in interface GenericFutureListener<ChannelFuture>
future
- the source Future
which called this callbackException
Copyright © 2008–2018 The Netty Project. All rights reserved.