Class ModuleTaskTimer

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

public final class ModuleTaskTimer extends Object implements ModuleTask
Holds task which is run on a Timer
  • Method Details

    • getUUID

      public UUID getUUID()
      Description copied from interface: ModuleTask
      Returns task's UUID
      Specified by:
      getUUID in interface ModuleTask
      Returns:
      UUID
    • getOwner

      public Module getOwner()
      Description copied from interface: ModuleTask
      Returns task's owner
      Specified by:
      getOwner in interface ModuleTask
      Returns:
      Module
    • 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
    • isRunning

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

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

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