public abstract class SubTaskBuilder
extends java.lang.Object
implements java.lang.Runnable
Constructor and Description |
---|
SubTaskBuilder(SubPluginInfo plugin)
Create a new Task
|
Modifier and Type | Method and Description |
---|---|
SubTaskBuilder |
delay(long value)
Delay this task
|
long |
getDelay()
Get the Delay for this task
|
SubPluginInfo |
getPlugin()
Get the Plugin that created this task
|
long |
getRepeat()
Get the Repeat Interval for this task
|
SubTaskBuilder |
repeat(long value)
Set the Repeat Interval for this task
|
java.util.UUID |
schedule()
Schedule this task
|
public SubTaskBuilder(SubPluginInfo plugin)
plugin
- Plugin Creatingpublic SubPluginInfo getPlugin()
public SubTaskBuilder repeat(long value)
value
- Valuepublic long getRepeat()
public SubTaskBuilder delay(long value)
value
- Valuepublic long getDelay()
public java.util.UUID schedule()