Class LoggingTaskListener
- java.lang.Object
-
- org.hawaiiframework.async.task_listener.LoggingTaskListener
-
- All Implemented Interfaces:
TaskListener
,org.springframework.core.Ordered
public class LoggingTaskListener extends Object implements TaskListener
Task listener that logs start and end calls.Ordered at '0'.
-
-
Constructor Summary
Constructors Constructor Description LoggingTaskListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
finish()
Called just after a task is finished.int
getOrder()
void
setSharedTaskContext(SharedTaskContext sharedTaskContext)
Set the shared task context in this task context.void
startExecution()
Called just before the task is started.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hawaiiframework.async.task_listener.TaskListener
timeout
-
-
-
-
Method Detail
-
getOrder
public int getOrder()
- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered
-
setSharedTaskContext
public void setSharedTaskContext(SharedTaskContext sharedTaskContext)
Description copied from interface:TaskListener
Set the shared task context in this task context. Invoked before the set.- Specified by:
setSharedTaskContext
in interfaceTaskListener
- Parameters:
sharedTaskContext
- the shared task context.
-
startExecution
public void startExecution()
Description copied from interface:TaskListener
Called just before the task is started.- Specified by:
startExecution
in interfaceTaskListener
-
finish
public void finish()
Description copied from interface:TaskListener
Called just after a task is finished.- Specified by:
finish
in interfaceTaskListener
-
-