Interface ScheduledTask


public interface ScheduledTask
Represents a task scheduled for execution by the TaskScheduler.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Cancel this task to suppress subsequent executions.
    int
    Gets the unique ID of this task.
    Return the plugin which scheduled this task for execution.
    Get the actual method which will be executed by this task.
  • Method Details

    • getId

      int getId()
      Gets the unique ID of this task.
      Returns:
      this tasks ID
    • getOwner

      Plugin getOwner()
      Return the plugin which scheduled this task for execution.
      Returns:
      the owning plugin
    • getTask

      Runnable getTask()
      Get the actual method which will be executed by this task.
      Returns:
      the Runnable behind this task
    • cancel

      void cancel()
      Cancel this task to suppress subsequent executions.