Interface Scheduler.Cancellable

All Known Subinterfaces:
Scheduler.ScheduledCancellable
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 Summary

    Modifier and Type
    Method
    Description
    boolean
    Cancel the execution of this object.
    boolean
    Check if the execution has been cancelled
  • Method Details

    • cancel

      boolean 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