|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ExecutorListener
A listener for task related events from Executors
| Method Summary | |
|---|---|
void |
taskAccepted(Executor executor,
Queue.Task task)
Called whenever a task is accepted by an executor. |
void |
taskCompleted(Executor executor,
Queue.Task task,
long durationMS)
Called whenever a task is completed without any problems by an executor. |
void |
taskCompletedWithProblems(Executor executor,
Queue.Task task,
long durationMS,
Throwable problems)
Called whenever a task is completed without any problems by an executor. |
| Method Detail |
|---|
void taskAccepted(Executor executor,
Queue.Task task)
executor - The executor.task - The task.
void taskCompleted(Executor executor,
Queue.Task task,
long durationMS)
executor - The executor.task - The task.durationMS - The number of milliseconds that the task took to complete.
void taskCompletedWithProblems(Executor executor,
Queue.Task task,
long durationMS,
Throwable problems)
executor - The executor.task - The task.durationMS - The number of milliseconds that the task took to complete.problems - The exception that was thrown.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||