Class FutureTask
java.lang.Object
com.olziedev.playertreasury.api.scheduler.wrapped.task.FutureTask
- All Implemented Interfaces:
PluginTask
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cancel()
Cancels the task.int
boolean
Checks if the task is cancelled.void
Modifies the task to be cancelled.
-
Constructor Details
-
FutureTask
public FutureTask()
-
-
Method Details
-
cancel
public void cancel()Description copied from interface:PluginTask
Cancels the task.- Specified by:
cancel
in interfacePluginTask
-
isCancelled
public boolean isCancelled()Description copied from interface:PluginTask
Checks if the task is cancelled.- Specified by:
isCancelled
in interfacePluginTask
- Returns:
- if the task is cancelled.
-
getTaskId
public int getTaskId()- Specified by:
getTaskId
in interfacePluginTask
- Returns:
- the task id.
-
setTask
Modifies the task to be cancelled.- Parameters:
task
- the task to set
-