Class DeferredPromiseImpl.Recover

    • Constructor Summary

      Constructors 
      Constructor Description
      Recover​(PromiseImpl<T> promise, org.osgi.util.function.Function<Promise<?>,​? extends T> recovery, java.lang.Class<?> 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

      • recovery

        private final org.osgi.util.function.Function<Promise<?>,​? extends T> recovery
      • failureType

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

      • Recover

        Recover​(PromiseImpl<T> promise,
                org.osgi.util.function.Function<Promise<?>,​? extends T> recovery,
                java.lang.Class<?> failureType)
    • Method Detail

      • run

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