Class TaskImpl
java.lang.Object
org.apache.qpid.proton.reactor.impl.TaskImpl
- All Implemented Interfaces:
Comparable<TaskImpl>
,Extendable
,Task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
cancel()
Cancel the execution of this task.int
long
deadline()
boolean
void
setReactor
(Reactor reactor)
-
Constructor Details
-
TaskImpl
public TaskImpl(long deadline, int counter)
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<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
-
getReactor
- Specified by:
getReactor
in interfaceTask
- Returns:
- the reactor that created this task.
-
attachments
- Specified by:
attachments
in interfaceExtendable
-