public class TaskImpl extends java.lang.Object implements Task, java.lang.Comparable<TaskImpl>
| Modifier and Type | Field and Description |
|---|---|
private Record |
attachments |
private boolean |
cancelled |
private java.util.concurrent.atomic.AtomicInteger |
count |
private int |
counter |
private long |
deadline |
private Reactor |
reactor |
| Constructor and Description |
|---|
TaskImpl(long deadline) |
| 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) |
private final long deadline
private final int counter
private boolean cancelled
private final java.util.concurrent.atomic.AtomicInteger count
private Record attachments
private 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