Package org.eclipse.jetty.util.thread
Interface Scheduler.Task
- Enclosing interface:
- Scheduler
public static interface Scheduler.Task
A delayed task that can be cancelled.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
cancel()
Attempts to cancel the execution of this task.
-
Method Details
-
cancel
boolean cancel()Attempts to cancel the execution of this task.
If the task is already cancelled, or already executed, this method has no effect and returns
false
.Otherwise, the execution of this task is cancelled and this method returns
true
.- Returns:
- whether the task was cancelled
-