Class PromiseNotificationUtil

java.lang.Object
io.netty.util.internal.PromiseNotificationUtil

public final class PromiseNotificationUtil extends Object
Internal utilities to notify Promises.
  • Constructor Details

    • PromiseNotificationUtil

      private PromiseNotificationUtil()
  • Method Details

    • tryCancel

      public static void tryCancel(Promise<?> p, InternalLogger logger)
      Try to cancel the Promise and log if logger is not null in case this fails.
    • trySuccess

      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.
    • tryFailure

      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.