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.Runnable
public boolean cancel()
Cancellable
Java & Scala API
cancel
in interface Cancellable
public boolean isCancelled()
Cancellable
Java & Scala API
isCancelled
in interface Cancellable