Package net.md_5.bungee.api.scheduler
Interface ScheduledTask
public interface ScheduledTask
Represents a task scheduled for execution by the
TaskScheduler
.-
Method Summary
-
Method Details
-
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
Runnable
behind this task
-
cancel
void cancel()Cancel this task to suppress subsequent executions.
-