Top Fields Constructors Methods
io.netty.util.concurrent

public final Class UnaryPromiseNotifier<T>

extends Object
implements FutureListener<T>
Class Inheritance
All Implemented Interfaces
io.netty.util.concurrent.FutureListener, io.netty.util.concurrent.GenericFutureListener, java.util.EventListener
Annotations
@Deprecated
Imports
io.netty.util.internal.ObjectUtil, io.netty.util.internal.logging.InternalLogger, .InternalLoggerFactory

Deprecated

use PromiseNotifier#cascade(boolean, Future, Promise).

Field Summary

Modifier and TypeField and Description
private static final InternalLogger
private final Promise<? super T>

Constructor Summary

AccessConstructor and Description
public
UnaryPromiseNotifier(Promise<? super T> promise)

Method Summary

Modifier and TypeMethod and Description
public static <X> void
cascadeTo(Future<X> completedFuture, Promise<? super X> promise)

public void
operationComplete(Future<T>
the source Future which called this callback
future
)

Implements io.netty.util.concurrent.GenericFutureListener.operationComplete.

Invoked when the operation associated with the Future has been completed.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

loggerback to summary
private static final InternalLogger logger
promiseback to summary
private final Promise<? super T> promise

Constructor Detail

UnaryPromiseNotifierback to summary
public UnaryPromiseNotifier(Promise<? super T> promise)

Method Detail

cascadeToback to summary
public static <X> void cascadeTo(Future<X> completedFuture, Promise<? super X> promise)
operationCompleteback to summary
public void operationComplete(Future<T> future) throws Exception

Implements io.netty.util.concurrent.GenericFutureListener.operationComplete.

Doc from io.netty.util.concurrent.GenericFutureListener.operationComplete.

Invoked when the operation associated with the Future has been completed.

Parameters
future:Future<T>

the source Future which called this callback

Annotations
@Override