public class NullJmsListenerLock extends Object implements JmsListenerLock
JmsListenerLock which doesn't lock the listener waiting for the message
processing.
The usage of this lock will led to the JmsListenerLock work asynchronously.| Constructor and Description |
|---|
NullJmsListenerLock() |
| 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
|
public void lock()
JmsListenerLocklock in interface JmsListenerLockpublic void unlock()
JmsListenerLockunlock in interface JmsListenerLockpublic void unlockWithFailure()
JmsListenerLockunlockWithFailure in interface JmsListenerLockpublic void unlockWithFailure(org.mule.runtime.api.message.Error error)
JmsListenerLockunlockWithFailure in interface JmsListenerLockerror - The error to propagate inside the message listenerpublic void executeOnListenerThread(Runnable runnable)
JmsListenerLockrunnable on the blocked Listener thread.executeOnListenerThread in interface JmsListenerLockrunnable - to executepublic void init()
JmsListenerLockinit in interface JmsListenerLockCopyright © 2020. All rights reserved.