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 TaskEvent.Type.TIMER_TASK event.public boolean isCancelled()
public void cancel()
Taskpublic void setReactor(Reactor reactor)
public Reactor getReactor()
getReactor in interface Taskpublic Record attachments()
attachments in interface Extendable