Task

Represents work scheduled with a {@link Reactor} for execution at some point in the future. <p> Tasks are created using the {@link Reactor#schedule(int, Handler)} method.

Members

Functions

cancel
void cancel()

Cancel the execution of this task. No-op if invoked after the task was already executed.

deadline
long deadline()

@return the deadline at which the handler associated with the scheduled task should be delivered a {@link Type#TIMER_TASK} event.

getReactor
Reactor getReactor()

@return the reactor that created this task.

Inherited Members

From Extendable

attachments
Record attachments()
Undocumented in source.

Meta