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 Recordattachments()voidcancel()Cancel the execution of this task.intcompareTo(TaskImpl other)longdeadline()ReactorgetReactor()booleanisCancelled()voidsetReactor(Reactor reactor)
-
-
-
Method Detail
-
compareTo
public int compareTo(TaskImpl other)
- Specified by:
compareToin interfacejava.lang.Comparable<TaskImpl>
-
deadline
public long deadline()
- Specified by:
deadlinein interfaceTask- Returns:
- the deadline at which the handler associated with the scheduled
task should be delivered a
Event.Type.TIMER_TASKevent.
-
isCancelled
public boolean isCancelled()
-
cancel
public void cancel()
Description copied from interface:TaskCancel 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:
getReactorin interfaceTask- Returns:
- the reactor that created this task.
-
attachments
public Record attachments()
- Specified by:
attachmentsin interfaceExtendable
-
-