Class ModuleTaskTimer
java.lang.Object
enterprises.iwakura.modularbot.concurrent.ModuleTaskTimer
- All Implemented Interfaces:
ModuleTask
Holds task which is run on a
Timer-
Method Summary
-
Method Details
-
getUUID
Description copied from interface:ModuleTaskReturns task's UUID- Specified by:
getUUIDin interfaceModuleTask- Returns:
UUID
-
getOwner
Description copied from interface:ModuleTaskReturns task's owner- Specified by:
getOwnerin interfaceModuleTask- Returns:
Module
-
isCancelled
public boolean isCancelled()Description copied from interface:ModuleTaskDetermines if the task was cancelled- Specified by:
isCancelledin interfaceModuleTask- Returns:
- True if yes, false otherwise
-
isRunning
public boolean isRunning()Description copied from interface:ModuleTaskDetermines if the task is running- Specified by:
isRunningin interfaceModuleTask- Returns:
- True if yes, false otherwise
-
cancel
public void cancel()Description copied from interface:ModuleTaskCancels the task- Specified by:
cancelin interfaceModuleTask
-
start
public void start()Description copied from interface:ModuleTaskStarts the task- Specified by:
startin interfaceModuleTask
-