public interface JmsListenerLock
JmsListener to give the capability to the message listener work synchronously
consuming and processing messages through the entire flow.JmsListener| Modifier and Type | Method and Description |
|---|---|
void |
executeOnListenerThread(Runnable runnable)
Executes a
runnable on the blocked Listener thread. |
void |
init()
Configures the Lock to their initial state.
|
void |
lock()
Locks the listener waiting to the message to be processed through the flow
|
void |
unlock()
Unlocks the listener indicating that message has been processed correctly
|
void |
unlockWithFailure()
Unlocks the listener indicating that message has been processed with failures and the error should be propagated
|
void |
unlockWithFailure(org.mule.runtime.api.message.Error error)
Unlocks the listener indicating that message has been processed with failures and the error should be propagated
|
void lock()
void unlock()
void unlockWithFailure()
void unlockWithFailure(org.mule.runtime.api.message.Error error)
error - The error to propagate inside the message listenervoid executeOnListenerThread(Runnable runnable)
runnable on the blocked Listener thread.runnable - to executevoid init()
Copyright © 2022. All rights reserved.