Interface ScheduledTask


public interface ScheduledTask
Represents a scheduled task that can be cancelled.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Cancel this task.
    Get the plugin that scheduled this task.
    Get the current status of this task.
  • Method Details

    • getPlugin

      @Nonnull Object getPlugin()
      Get the plugin that scheduled this task.
      Returns:
      the owning plugin
    • getStatus

      @Nonnull TaskStatus getStatus()
      Get the current status of this task.
      Returns:
      the task status
    • cancel

      void cancel()
      Cancel this task.