public class DefaultAmqpListenerLock extends Object implements AmqpListenerLock
AmqpListenerLock based in the usage of Semaphore to support the capability of locking
and unlocking the listener from different threadsAmqpListenerLock,
AmqpListener| Constructor and Description |
|---|
DefaultAmqpListenerLock() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isLocked() |
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()
lock in interface AmqpListenerLockpublic void unlockWithFailure(org.mule.runtime.api.message.Error error)
unlockWithFailure in interface AmqpListenerLockerror - The error to propagate inside the message listenerpublic void unlockWithFailure()
unlockWithFailure in interface AmqpListenerLockpublic void unlock()
unlock in interface AmqpListenerLockpublic boolean isLocked()
isLocked in interface AmqpListenerLockCopyright © 2025 MuleSoft, Inc.. All rights reserved.