Top Description Constructors Methods
io.netty.util.internal

public final Class PromiseNotificationUtil

extends Object
Class Inheritance
Imports
io.netty.util.concurrent.Promise, io.netty.util.internal.logging.InternalLogger

Internal utilities to notify Promises.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static void
tryCancel(Promise<?> p, InternalLogger logger)

Try to cancel the Promise and log if logger is not null in case this fails.

public static void
tryFailure(Promise<?> p, Throwable cause, InternalLogger logger)

Try to mark the Promise as failure and log if logger is not null in case this fails.

public static <V> void
trySuccess(Promise<? super V> p, V result, InternalLogger logger)

Try to mark the Promise as success and log if logger is not null in case this fails.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

PromiseNotificationUtilback to summary
private PromiseNotificationUtil()

Method Detail

tryCancelback to summary
public static void tryCancel(Promise<?> p, InternalLogger logger)

Try to cancel the Promise and log if logger is not null in case this fails.

tryFailureback to summary
public static void tryFailure(Promise<?> p, Throwable cause, InternalLogger logger)

Try to mark the Promise as failure and log if logger is not null in case this fails.

trySuccessback to summary
public static <V> void trySuccess(Promise<? super V> p, V result, InternalLogger logger)

Try to mark the Promise as success and log if logger is not null in case this fails.