Class TimeoutProcessor.TimeoutFuture

java.lang.Object
com.linkedin.alpini.base.misc.DoublyLinkedList.Entry<TimeoutProcessor.TimeoutFuture>
com.linkedin.alpini.base.concurrency.TimeoutProcessor.TimeoutFuture
Enclosing class:
TimeoutProcessor

public static class TimeoutProcessor.TimeoutFuture extends DoublyLinkedList.Entry<TimeoutProcessor.TimeoutFuture>
  • Method Details

    • isDone

      public boolean isDone()
      Test if the task has been completed.
      Returns:
      true if the task was run or cancelled.
    • cancel

      public boolean cancel()
      Cancels a pending scheduled runnable
      Returns:
      true if the runnable task was not yet run.