|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TaskListener
By implementing this interface and attaching the listener to - for example -
TaskService.addTaskListener(TaskListener)
, interested parties can receive notification
about what is going on inside a TaskService
.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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 scopevoid scopeDeregistered(Task<?> task, TaskScope<?> scope)
Task
that has been abandoned (cancelled) by a scope.
task
- the taskscope
- the scope that abandoned (cancelled) the task
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |