protected static class LightArrayRevolverScheduler.TaskHolder extends java.lang.Object implements LightArrayRevolverScheduler.TimerTask
| Constructor and Description |
|---|
TaskHolder(java.lang.Runnable task,
int ticks,
scala.concurrent.ExecutionContext executionContext) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel()
Cancels this Cancellable and returns true if that was successful.
|
boolean |
executeTask() |
boolean |
isCancelled()
Returns true if and only if this Cancellable has been successfully cancelled
|
void |
run() |
java.lang.Runnable |
task() |
int |
ticks() |
public TaskHolder(java.lang.Runnable task,
int ticks,
scala.concurrent.ExecutionContext executionContext)
public java.lang.Runnable task()
public int ticks()
public final boolean executeTask()
public void run()
run in interface java.lang.Runnablepublic boolean cancel()
CancellableJava & Scala API
cancel in interface Cancellablepublic boolean isCancelled()
CancellableJava & Scala API
isCancelled in interface Cancellable