Class ModuleRunnable
java.lang.Object
enterprises.iwakura.modularbot.concurrent.ModuleRunnable
- All Implemented Interfaces:
ModuleTask
Module's async runnable task-
Method Details
-
getUUID
Task's UUID- Specified by:
getUUIDin interfaceModuleTask- Returns:
UUID
-
isCancelled
public boolean isCancelled()Description copied from interface:ModuleTaskDetermines if the task was cancelled- Specified by:
isCancelledin interfaceModuleTask- 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:
cancelin interfaceModuleTask
-
start
public void start()Description copied from interface:ModuleTaskStarts the task- Specified by:
startin interfaceModuleTask
-