public interface Task extends Identifiable
Modifier and Type | Method and Description |
---|---|
boolean |
cancel()
Cancels the task.
|
long |
getDelay()
Gets the delay that the task was scheduled to run after.
|
long |
getInterval()
Gets the interval for repeating tasks.
|
String |
getName()
Gets the name of this task.
|
PluginContainer |
getOwner()
Returns the plugin that scheduled this task.
|
Runnable |
getRunnable()
Gets the
Runnable that this task is running. |
boolean |
isAsynchronous()
Gets whether this task is asynchronous.
|
getUniqueId
String getName()
PluginContainer getOwner()
long getDelay()
long getInterval()
boolean cancel()
Runnable getRunnable()
Runnable
that this task is running.boolean isAsynchronous()