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 TypeMethodDescriptionvoidcancel()Cancel the execution of this task.intlongdeadline()booleanvoidsetReactor(Reactor reactor)
-
Constructor Details
-
TaskImpl
public TaskImpl(long deadline, int counter)
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<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
-
getReactor
- Specified by:
getReactorin interfaceTask- Returns:
- the reactor that created this task.
-
attachments
- Specified by:
attachmentsin interfaceExtendable
-