Interface ScheduledTask
-
public interface ScheduledTaskRepresents a task that is scheduled to run on the proxy.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcancel()Cancels this task.@NotNull Objectplugin()Returns the plugin that scheduled this task.TaskStatusstatus()Returns the current status of this task.
-
-
-
Method Detail
-
plugin
@NotNull @NotNull Object plugin()
Returns the plugin that scheduled this task.- Returns:
- the plugin that scheduled this task
-
status
TaskStatus status()
Returns the current status of this task.- Returns:
- the current status of this task
-
cancel
void cancel()
Cancels this task. If the task is already running, the thread in which it is running will be interrupted. If the task is not currently running, Velocity will terminate it safely.
-
-