Class CancellableRequest<T>


  • public class CancellableRequest<T>
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void cancel()  
      java.util.concurrent.CompletableFuture<T> getFuture()  
      void start​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<T>> supplier, java.util.function.Predicate<T> termination, java.util.concurrent.ScheduledExecutorService executor)  
      • Methods inherited from class java.lang.Object

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

      • CancellableRequest

        public CancellableRequest()
    • Method Detail

      • cancel

        public void cancel()
      • start

        public void start​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<T>> supplier,
                          java.util.function.Predicate<T> termination,
                          java.util.concurrent.ScheduledExecutorService executor)
      • getFuture

        public java.util.concurrent.CompletableFuture<T> getFuture()