Class ModuleRunnable

java.lang.Object
enterprises.iwakura.modularbot.concurrent.ModuleRunnable
All Implemented Interfaces:
ModuleTask

public final class ModuleRunnable extends Object implements ModuleTask
Module's async runnable task
  • Method Details

    • getUUID

      public UUID getUUID()
      Task's UUID
      Specified by:
      getUUID in interface ModuleTask
      Returns:
      UUID
    • isCancelled

      public boolean isCancelled()
      Description copied from interface: ModuleTask
      Determines if the task was cancelled
      Specified by:
      isCancelled in interface ModuleTask
      Returns:
      True if yes, false otherwise
    • cancel

      public void cancel()
      Removes this task from the Module's scheduler, however, does not interrupt any running tasks
      Specified by:
      cancel in interface ModuleTask
    • start

      public void start()
      Description copied from interface: ModuleTask
      Starts the task
      Specified by:
      start in interface ModuleTask