public class PromiseNotifier<V,F extends Future<V>> extends Object implements GenericFutureListener<F>
GenericFutureListener
implementation which takes other Future
s
and notifies them on completion.Constructor and Description |
---|
PromiseNotifier(Promise<? super V>... promises)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
operationComplete(F future)
Invoked when the operation associated with the
Future has been completed. |
@SafeVarargs public PromiseNotifier(Promise<? super V>... promises)
promises
- the Promise
s to notify once this GenericFutureListener
is notified.public void operationComplete(F future) throws Exception
GenericFutureListener
Future
has been completed.operationComplete
in interface GenericFutureListener<F extends Future<V>>
future
- the source Future
which called this callbackException
Copyright © 2008–2015 The Netty Project. All rights reserved.