Class DeferredPromiseImpl.Timeout

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

    final class DeferredPromiseImpl.Timeout
    extends java.lang.Object
    implements java.lang.Runnable
    A callback used by the PromiseImpl.timeout(long) method to schedule the timeout and to resolve the chained Promise and cancel the timeout.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.concurrent.ScheduledFuture<?> future  
      private PromiseImpl<T> promise  
    • Constructor Summary

      Constructors 
      Constructor Description
      Timeout​(PromiseImpl<T> promise, long millis)  
    • 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

      • future

        private final java.util.concurrent.ScheduledFuture<?> future
    • Constructor Detail

    • Method Detail

      • run

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