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