Class DeferredPromiseImpl.FallbackChain

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

    private final class DeferredPromiseImpl.FallbackChain
    extends java.lang.Object
    implements java.lang.Runnable
    A callback used to resolve the chained Promise when the fallback Promise is resolved.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Throwable failure  
      private Promise<? extends T> fallback  
    • Constructor Summary

      Constructors 
      Constructor Description
      FallbackChain​(Promise<? extends T> fallback, 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

      • fallback

        private final Promise<? extends T> fallback
      • failure

        private final java.lang.Throwable failure
    • Constructor Detail

      • FallbackChain

        FallbackChain​(Promise<? extends T> fallback,
                      java.lang.Throwable failure)
    • Method Detail

      • run

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