Class LoggingTaskListener
java.lang.Object
org.hawaiiframework.async.task.listener.LoggingTaskListener
- All Implemented Interfaces:
TaskListener,org.springframework.core.Ordered
Task listener that logs start and end calls.
Ordered at '0'.
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfinish()Called just after a task is finished.intgetOrder()voidsetSharedTaskContext(SharedTaskContext sharedTaskContext) Set the shared task context in this task context.voidCalled just before the task is started.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hawaiiframework.async.task.listener.TaskListener
timeout
-
Constructor Details
-
LoggingTaskListener
public LoggingTaskListener()
-
-
Method Details
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
startExecution
public void startExecution()Description copied from interface:TaskListenerCalled just before the task is started.- Specified by:
startExecutionin interfaceTaskListener
-
finish
public void finish()Description copied from interface:TaskListenerCalled just after a task is finished.- Specified by:
finishin interfaceTaskListener
-