public class TaskImpl extends java.lang.Object implements Task, java.lang.Comparable<TaskImpl>
Constructor and Description |
---|
TaskImpl(long deadline,
int counter) |
Modifier and Type | Method and Description |
---|---|
Record |
attachments() |
void |
cancel()
Cancel the execution of this task.
|
int |
compareTo(TaskImpl other) |
long |
deadline() |
Reactor |
getReactor() |
boolean |
isCancelled() |
void |
setReactor(Reactor reactor) |
public int compareTo(TaskImpl other)
compareTo
in interface java.lang.Comparable<TaskImpl>
public long deadline()
deadline
in interface Task
Event.Type.TIMER_TASK
event.public boolean isCancelled()
public void cancel()
Task
public void setReactor(Reactor reactor)
public Reactor getReactor()
getReactor
in interface Task
public Record attachments()
attachments
in interface Extendable