V - the type of value returned by the futureF - the type of futurepublic class PromiseNotifier<V,F extends Future<V>> extends java.lang.Object implements GenericFutureListener<F>
GenericFutureListener implementation which takes other Promises
and notifies them on completion.| Constructor and Description |
|---|
PromiseNotifier(boolean logNotifyFailure,
Promise<? super V>... promises)
Create a new instance.
|
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.@SafeVarargs
public PromiseNotifier(boolean logNotifyFailure,
Promise<? super V>... promises)
logNotifyFailure - true if logging should be done in case notification fails.promises - the Promises to notify once this GenericFutureListener is notified.public void operationComplete(F future) throws java.lang.Exception
GenericFutureListenerFuture has been completed.operationComplete in interface GenericFutureListener<F extends Future<V>>future - the source Future which called this callbackjava.lang.ExceptionCopyright © 2008–2018 The Netty Project. All rights reserved.