Class PromiseImpl.OnFailure<F>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.osgi.util.function.Consumer<? super F> failure  
      private java.lang.Class<? extends F> failureType  
    • Constructor Summary

      Constructors 
      Constructor Description
      OnFailure​(org.osgi.util.function.Consumer<? super F> failure, java.lang.Class<? extends F> failureType)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void accept​(T v, java.lang.Throwable f)  
      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 org.osgi.util.function.Consumer<? super F> failure
      • failureType

        private final java.lang.Class<? extends F> failureType
    • Constructor Detail

      • OnFailure

        OnFailure​(org.osgi.util.function.Consumer<? super F> failure,
                  java.lang.Class<? extends F> failureType)
    • Method Detail

      • run

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