public interface Task extends Identifiable
Modifier and Type | Interface and Description |
---|---|
static interface |
Task.Builder
Represents a builder to create a
Task . |
Modifier and Type | Method and Description |
---|---|
static Task.Builder |
builder()
Creates a new
Task.Builder to build a Task . |
boolean |
cancel()
Cancels the task.
|
Consumer<Task> |
getConsumer()
|
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.
|
boolean |
isAsynchronous()
Gets whether this task is asynchronous.
|
getUniqueId
static Task.Builder builder()
Task.Builder
to build a Task
.String getName()
PluginContainer getOwner()
long getDelay()
long getInterval()
boolean cancel()
boolean isAsynchronous()