Class DelayedCancellable

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void cancel()
      Sends a hint to the producer of the associated asynchronous execution that the consumer related to this Cancellable is not interested in the outcome of the execution.
      void delayedCancellable​(Cancellable delayedCancellable)
      Set the delayed Cancellable.
      • Methods inherited from class java.lang.Object

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

      • DelayedCancellable

        public DelayedCancellable()
    • Method Detail

      • delayedCancellable

        public final void delayedCancellable​(Cancellable delayedCancellable)
        Set the delayed Cancellable. This method can only be called a single time and subsequent calls will result in cancel() being call on delayedCancellable.
        Parameters:
        delayedCancellable - The delayed Cancellable.
      • cancel

        public void cancel()
        Description copied from interface: Cancellable
        Sends a hint to the producer of the associated asynchronous execution that the consumer related to this Cancellable is not interested in the outcome of the execution.
        Specified by:
        cancel in interface Cancellable