Class TasksHandler.TasksListenerAdapter
java.lang.Object
org.springframework.statemachine.recipes.tasks.TasksHandler.TasksListenerAdapter
- All Implemented Interfaces:
TasksHandler.TasksListener
- Enclosing class:
- TasksHandler
public static class TasksHandler.TasksListenerAdapter
extends Object
implements TasksHandler.TasksListener
Adapter class for
TasksHandler.TasksListener.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonTaskFailed(Object id, Exception exception) Called when task execution result an error of any kind.voidCalled after tasks has been executed regardless if task execution succeeded or not.voidCalled before tasks is about to be executed.voidonTasksAutomaticFix(TasksHandler handler, StateContext<String, String> context) Called when tasks execution resulted an error and AUTOMATIC state is entered.voidCalled when some of a tasks in DAGs failed to execute and tasks execution in going to continue.voidCalled when after an execution of full DAGs if some of the tasks executed with an error.voidCalled when all DAGs have either never executed or previous execution was fully successful.voidCalled when all tasks has been executed successfully.voidonTaskSuccess(Object id) Called when task execution result without errors.
-
Constructor Details
-
TasksListenerAdapter
public TasksListenerAdapter()
-
-
Method Details
-
onTasksStarted
public void onTasksStarted()Description copied from interface:TasksHandler.TasksListenerCalled when all DAGs have either never executed or previous execution was fully successful.- Specified by:
onTasksStartedin interfaceTasksHandler.TasksListener
-
onTasksContinue
public void onTasksContinue()Description copied from interface:TasksHandler.TasksListenerCalled when some of a tasks in DAGs failed to execute and tasks execution in going to continue.- Specified by:
onTasksContinuein interfaceTasksHandler.TasksListener
-
onTaskPreExecute
Description copied from interface:TasksHandler.TasksListenerCalled before tasks is about to be executed.- Specified by:
onTaskPreExecutein interfaceTasksHandler.TasksListener- Parameters:
id- the task id
-
onTaskPostExecute
Description copied from interface:TasksHandler.TasksListenerCalled after tasks has been executed regardless if task execution succeeded or not.- Specified by:
onTaskPostExecutein interfaceTasksHandler.TasksListener- Parameters:
id- the task id
-
onTaskFailed
Description copied from interface:TasksHandler.TasksListenerCalled when task execution result an error of any kind.- Specified by:
onTaskFailedin interfaceTasksHandler.TasksListener- Parameters:
id- the task idexception- the exception
-
onTaskSuccess
Description copied from interface:TasksHandler.TasksListenerCalled when task execution result without errors.- Specified by:
onTaskSuccessin interfaceTasksHandler.TasksListener- Parameters:
id- the task id
-
onTasksSuccess
public void onTasksSuccess()Description copied from interface:TasksHandler.TasksListenerCalled when all tasks has been executed successfully.- Specified by:
onTasksSuccessin interfaceTasksHandler.TasksListener
-
onTasksError
public void onTasksError()Description copied from interface:TasksHandler.TasksListenerCalled when after an execution of full DAGs if some of the tasks executed with an error.- Specified by:
onTasksErrorin interfaceTasksHandler.TasksListener
-
onTasksAutomaticFix
Description copied from interface:TasksHandler.TasksListenerCalled when tasks execution resulted an error and AUTOMATIC state is entered. This is a moment where extended state variables can be modified to allow continue into a READY state.- Specified by:
onTasksAutomaticFixin interfaceTasksHandler.TasksListener- Parameters:
handler- the tasks handlercontext- the state context
-