Class DefaultJmsListenerLockFactory
java.lang.Object
org.mule.jms.commons.internal.lock.DefaultJmsListenerLockFactory
- All Implemented Interfaces:
JmsListenerLockFactory
Default implementation of
JmsListenerLockFactory- Since:
- 1.2.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateLock(InternalAckMode resolvedAckMode) Creates a new instance for the givenresolvedAckModevoidsetEnabled(boolean enabled) Toggles the enable state ofthisinstance.
-
Constructor Details
-
DefaultJmsListenerLockFactory
public DefaultJmsListenerLockFactory()
-
-
Method Details
-
createLock
Description copied from interface:JmsListenerLockFactoryCreates a new instance for the givenresolvedAckMode- Specified by:
createLockin interfaceJmsListenerLockFactory- Parameters:
resolvedAckMode- the ack mode- Returns:
- a new instance
-
setEnabled
public void setEnabled(boolean enabled) Description copied from interface:JmsListenerLockFactoryToggles the enable state ofthisinstance. This is useful for stop/reconnection cases in which we want to keep messages from being dispatched to the flow.- Specified by:
setEnabledin interfaceJmsListenerLockFactory- Parameters:
enabled- the new state
-