Class CompletableFutures.FutureCancelChecker

    • Constructor Summary

      Constructors 
      Constructor Description
      FutureCancelChecker​(java.util.concurrent.CompletableFuture<?> future)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void checkCanceled()
      Throw a CancellationException if the currently processed request has been canceled.
      boolean isCanceled()
      Check for cancellation without throwing an exception.
      • Methods inherited from class java.lang.Object

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

      • FutureCancelChecker

        public FutureCancelChecker​(java.util.concurrent.CompletableFuture<?> future)
    • Method Detail

      • checkCanceled

        public void checkCanceled()
        Description copied from interface: CancelChecker
        Throw a CancellationException if the currently processed request has been canceled.
        Specified by:
        checkCanceled in interface CancelChecker
      • isCanceled

        public boolean isCanceled()
        Description copied from interface: CancelChecker
        Check for cancellation without throwing an exception.
        Specified by:
        isCanceled in interface CancelChecker