Interface ScheduledTask


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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void cancel()
      Cancel this task to suppress subsequent executions.
      int getId()
      Gets the unique ID of this task.
      Plugin getOwner()
      Return the plugin which scheduled this task for execution.
      Runnable getTask()
      Get the actual method which will be executed by this task.
    • Method Detail

      • 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.