public interface SchedulerService
Task
s.Modifier and Type | Method and Description |
---|---|
TaskBuilder |
createTaskBuilder()
Gets a new instance of a
TaskBuilder . |
Set<Task> |
getScheduledTasks()
Returns a set of all currently scheduled tasks.
|
Set<Task> |
getScheduledTasks(boolean async)
Returns a set of all currently scheduled tasks for either asynchronous or
synchronous execution.
|
Set<Task> |
getScheduledTasks(Object plugin)
Returns a set of all currently scheduled tasks owned by the given plugin.
|
Optional<Task> |
getTaskById(UUID id)
Retrieves a scheduled or running task by its unique ID.
|
Set<Task> |
getTasksByName(String pattern)
Returns a set of
Task s that match the Regular Expression pattern. |
TaskBuilder createTaskBuilder()
TaskBuilder
.Optional<Task> getTaskById(UUID id)
id
- The id of the taskOptional.absent()
Set<Task> getTasksByName(String pattern)
Task
s that match the Regular Expression pattern.pattern
- The regular expression pattern applied to the name of
tasksTask
s that have names that match the pattern,
the set will be empty if no names matchSet<Task> getScheduledTasks()
Set<Task> getScheduledTasks(boolean async)
async
- True to get all async tasks, false to get all sync tasks