Package io.netty.util.concurrent
Class UnaryPromiseNotifier<T>
- java.lang.Object
-
- io.netty.util.concurrent.UnaryPromiseNotifier<T>
-
- All Implemented Interfaces:
FutureListener<T>,GenericFutureListener<Future<T>>,java.util.EventListener
public final class UnaryPromiseNotifier<T> extends java.lang.Object implements FutureListener<T>
-
-
Field Summary
Fields Modifier and Type Field Description private static InternalLoggerloggerprivate Promise<? super T>promise
-
Constructor Summary
Constructors Constructor Description UnaryPromiseNotifier(Promise<? super T> promise)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <X> voidcascadeTo(Future<X> completedFuture, Promise<? super X> promise)voidoperationComplete(Future<T> future)Invoked when the operation associated with theFuturehas been completed.
-
-
-
Field Detail
-
logger
private static final InternalLogger logger
-
-
Method Detail
-
operationComplete
public void operationComplete(Future<T> future) throws java.lang.Exception
Description copied from interface:GenericFutureListenerInvoked when the operation associated with theFuturehas been completed.- Specified by:
operationCompletein interfaceGenericFutureListener<T>- Parameters:
future- the sourceFuturewhich called this callback- Throws:
java.lang.Exception
-
-