public interface TaskListener
TaskService.addTaskListener(TaskListener)
, interested parties can receive notification
about what is going on inside a TaskService
.Modifier and Type | Method and Description |
---|---|
void |
scopeDeregistered(Task<?> task,
TaskScope<?> scope)
Receive notification about a
Task that has been abandoned (cancelled) by a scope. |
void |
scopeRegistered(Task<?> task,
TaskScope<?> scope)
Receive notification about a
Task that has been re-submitted identically but from a
different scope. |
void |
taskCancelled(Task<?> task)
Receive notification about a
Task that whose execution has been cancelled. |
void |
taskCompleted(Task<?> task)
Receive notification about a
Task that whose execution has completed without
exceptions. |
void |
taskFailed(Task<?> task)
Receive notification about a
Task that whose execution has failed. |
void |
taskQueued(Task<?> task,
int priority)
Receive notification about a
Task that has been enqueued. |
void |
taskStarted(Task<?> task)
Receive notification about a
Task that whose execution has been started. |
void taskQueued(Task<?> task, int priority)
Task
that has been enqueued.task
- the taskpriority
- the task's priority.void taskStarted(Task<?> task)
Task
that whose execution has been started.task
- the taskvoid taskFailed(Task<?> task)
Task
that whose execution has failed.task
- the taskvoid taskCompleted(Task<?> task)
Task
that whose execution has completed without
exceptions.task
- the taskvoid taskCancelled(Task<?> task)
Task
that whose execution has been cancelled.task
- the taskvoid scopeRegistered(Task<?> task, TaskScope<?> scope)
Task
that has been re-submitted identically but from a
different scope.task
- the taskscope
- the additional scopeCopyright © 2024 levigo holding gmbh. All rights reserved.