public class PromiseNotifier<V,F extends Future<V>> extends Object implements GenericFutureListener<F>
GenericFutureListener implementation which takes other Futures
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 Promises to notify once this GenericFutureListener is notified.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–2015 The Netty Project. All rights reserved.