Interface ScheduledTask


public interface ScheduledTask
Handle for a repeating task; cancel it when it is no longer needed.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Cancels future executions.
    boolean
    Whether this task was cancelled.
  • Method Details

    • cancel

      void cancel()
      Cancels future executions. Already-running executions are unaffected.
    • isCancelled

      boolean isCancelled()
      Whether this task was cancelled.