Class PromiseNotificationUtil


  • public final class PromiseNotificationUtil
    extends Object
    Internal utilities to notify Promises.
    • Method Detail

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