Class TaskImpl
- java.lang.Object
-
- org.apache.qpid.proton.reactor.impl.TaskImpl
-
- All Implemented Interfaces:
java.lang.Comparable<TaskImpl>
,Extendable
,Task
public class TaskImpl extends java.lang.Object implements Task, java.lang.Comparable<TaskImpl>
-
-
Constructor Summary
Constructors Constructor Description TaskImpl(long deadline, int counter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
compareTo
public int compareTo(TaskImpl other)
- Specified by:
compareTo
in interfacejava.lang.Comparable<TaskImpl>
-
deadline
public long deadline()
- Specified by:
deadline
in interfaceTask
- Returns:
- the deadline at which the handler associated with the scheduled
task should be delivered a
Event.Type.TIMER_TASK
event.
-
isCancelled
public boolean isCancelled()
-
cancel
public void cancel()
Description copied from interface:Task
Cancel the execution of this task. No-op if invoked after the task was already executed.
-
setReactor
public void setReactor(Reactor reactor)
-
getReactor
public Reactor getReactor()
- Specified by:
getReactor
in interfaceTask
- Returns:
- the reactor that created this task.
-
attachments
public Record attachments()
- Specified by:
attachments
in interfaceExtendable
-
-