Interface TimerHandle


public interface TimerHandle
Handle for a scheduled timer, allowing cancellation.

Returned by timer scheduling methods to allow the caller to cancel a pending timer before it fires.

Author:
Chris Burdess
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Cancels this timer.
    boolean
    Returns true if this timer has been cancelled.
  • Method Details

    • cancel

      void cancel()
      Cancels this timer. If the timer has already fired, this has no effect.
    • isCancelled

      boolean isCancelled()
      Returns true if this timer has been cancelled.
      Returns:
      true if cancelled