public interface LifecycleAwareExecutorBusProcessor extends ExecutorBusProcessor
ExecutorBusProcessor
that hooks into the Executor Bus's
lifecycle.
Executor bus processors that open or close resources (such as one or more connections to an external system) can implement this interface to hook into the executor bus's lifecycle.
ExecutorBusProcessor.Acknowledger
Modifier and Type | Method and Description |
---|---|
void |
onExecutorBusClose(MessageBusBinding busBinding)
Called by the executor bus when it is closed.
|
void |
onExecutorBusOpen(MessageBusBinding busBinding)
Called by the executor bus when it is opened.
|
void |
onExecutorBusStart(MessageBusBinding busBinding)
Called by the executor bus when it is started.
|
process
void onExecutorBusOpen(MessageBusBinding busBinding) throws Exception, SmaPermanentException
This call allows the processor to create or open any resources it needs to perform processing.
busBinding
- The executor bus binding that is being opened.Exception
- If there is an error opening the processor.SmaPermanentException
- May be thrown by the processor to indicate that this is not
a temporary error and the the bus binding should not attempt to retry the open operation.void onExecutorBusStart(MessageBusBinding busBinding) throws Exception, SmaPermanentException
This processor must be prepared to begin processing messages upon return from this call.
busBinding
- The executor bus binding that is being started.Exception
- If there is an error opening the processor.SmaPermanentException
- May be thrown by the processor to indicate that this is not
a temporary error and the the bus binding should not attempt to retry the start operation.void onExecutorBusClose(MessageBusBinding busBinding) throws Exception
This call allows the processor to close any resources it has opened to do its processing.
busBinding
- The executor bus binding that is being closed.Exception
- If there is an error cllsing the processor.Copyright © 2019 Neeve Research, LLC. All Rights Reserved.