public interface TaskLifecycleListener
Modifier and Type | Method and Description |
---|---|
void |
afterClose(Config config,
TaskContext context)
Called after all tasks in TaskRunner are closed.
|
void |
afterInit(Config config,
TaskContext context)
Called after all tasks in TaskRunner are initialized.
|
void |
afterProcess(IncomingMessageEnvelope envelope,
Config config,
TaskContext context)
Called after a message is processed by a task.
|
void |
beforeClose(Config config,
TaskContext context)
Called before all tasks in TaskRunner are closed.
|
void |
beforeInit(Config config,
TaskContext context)
Called before all tasks in TaskRunner are initialized.
|
void |
beforeProcess(IncomingMessageEnvelope envelope,
Config config,
TaskContext context)
Called before a message is processed by a task.
|
void beforeInit(Config config, TaskContext context)
void afterInit(Config config, TaskContext context)
void beforeProcess(IncomingMessageEnvelope envelope, Config config, TaskContext context)
void afterProcess(IncomingMessageEnvelope envelope, Config config, TaskContext context)
void beforeClose(Config config, TaskContext context)
void afterClose(Config config, TaskContext context)