public class TaskExecutionAdapter extends Object implements TaskExecutionListener
TaskExecutionListener
adapter class for receiving task execution events.
The methods in this class are empty. This class exists as convenience for creating listener objects.コンストラクタと説明 |
---|
TaskExecutionAdapter() |
修飾子とタイプ | メソッドと説明 |
---|---|
void |
afterExecute(Task task,
TaskState state)
This method is call immediately after a task has been executed.
|
void |
beforeExecute(Task task)
This method is called immediately before a task is executed.
|
public void beforeExecute(Task task)
TaskExecutionListener
beforeExecute
インタフェース内 TaskExecutionListener
task
- The task about to be executed. Never null.public void afterExecute(Task task, TaskState state)
TaskExecutionListener
afterExecute
インタフェース内 TaskExecutionListener
task
- The task which was executed. Never null.state
- The task state. If the task failed with an exception, the exception is available in this
state. Never null.