Interface ModuleTask
- All Known Implementing Classes:
ModuleRunnable,ModuleTaskTimer
public interface ModuleTask
Base for the Module's tasks
-
Method Summary
-
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
-