Package org.mule.jms.commons.api.lock
Interface JmsListenerLockFactory
- All Known Implementing Classes:
DefaultJmsListenerLockFactory
public interface JmsListenerLockFactory
Factory for instances of
JmsListenerLock- Since:
- 1.2.0
-
Method Summary
Modifier and TypeMethodDescriptioncreateLock(InternalAckMode resolvedAckMode) Creates a new instance for the givenresolvedAckModestatic JmsListenerLockFactoryvoidsetEnabled(boolean enabled) Toggles the enable state ofthisinstance.
-
Method Details
-
newDefault
- Returns:
- a new default instance
-
createLock
Creates a new instance for the givenresolvedAckMode- Parameters:
resolvedAckMode- the ack mode- Returns:
- a new instance
-
setEnabled
void setEnabled(boolean enabled) Toggles the enable state ofthisinstance. This is useful for stop/reconnection cases in which we want to keep messages from being dispatched to the flow.- Parameters:
enabled- the new state
-