Class PromiseImpl.OnFailure

  • All Implemented Interfaces:
    java.lang.Runnable
    Enclosing class:
    PromiseImpl<T>

    private final class PromiseImpl.OnFailure
    extends java.lang.Object
    implements java.lang.Runnable
    A callback used for the PromiseImpl.onFailure(Consumer) method.
    Since:
    1.1
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Consumer<? super java.lang.Throwable> failure  
    • Constructor Summary

      Constructors 
      Constructor Description
      OnFailure​(Consumer<? super java.lang.Throwable> failure)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • failure

        private final Consumer<? super java.lang.Throwable> failure
    • Constructor Detail

      • OnFailure

        OnFailure​(Consumer<? super java.lang.Throwable> failure)
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable