Interface ModuleTask

All Known Implementing Classes:
ModuleRunnable, ModuleTaskTimer

public interface ModuleTask
Base for the Module's tasks
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Cancels the task
    Returns task's owner
    Returns task's UUID
    boolean
    Determines if the task was cancelled
    boolean
    Determines if the task is running
    void
    Starts the task
  • Method Details

    • getUUID

      UUID getUUID()
      Returns task's UUID
      Returns:
      UUID
    • getOwner

      Module getOwner()
      Returns task's owner
      Returns:
      Module
    • isCancelled

      boolean isCancelled()
      Determines if the task was cancelled
      Returns:
      True if yes, false otherwise
    • isRunning

      boolean isRunning()
      Determines if the task is running
      Returns:
      True if yes, false otherwise
    • cancel

      void cancel()
      Cancels the task
    • start

      void start()
      Starts the task