Interface Scheduler.Cancellable

  • All Known Implementing Classes:
    Scheduler.ReschedulingRunnable
    Enclosing interface:
    Scheduler

    public static interface Scheduler.Cancellable
    This interface represents an object whose execution may be cancelled during runtime.
    • Method Detail

      • cancel

        void cancel()
        Cancel the execution of this object. This method is idempotent.
      • isCancelled

        boolean isCancelled()
        Check if the execution has been cancelled
        Returns:
        true if cancelled