Package net.md_5.bungee.api.scheduler
Interface ScheduledTask
-
public interface ScheduledTaskRepresents a task scheduled for execution by theTaskScheduler.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcancel()Cancel this task to suppress subsequent executions.intgetId()Gets the unique ID of this task.PlugingetOwner()Return the plugin which scheduled this task for execution.RunnablegetTask()Get the actual method which will be executed by this task.
-
-
-
Method Detail
-
getId
int getId()
Gets the unique ID of this task.- Returns:
- this tasks ID
-
getOwner
Plugin getOwner()
Return the plugin which scheduled this task for execution.- Returns:
- the owning plugin
-
getTask
Runnable getTask()
Get the actual method which will be executed by this task.- Returns:
- the
Runnablebehind this task
-
cancel
void cancel()
Cancel this task to suppress subsequent executions.
-
-