public final class JmsMessageListenerFactory<T extends DefaultJmsAttributes> extends Object
JmsMessageListener| Constructor and Description |
|---|
JmsMessageListenerFactory(InternalAckMode ackMode,
String encoding,
String contentType,
JmsConfig config,
JmsSessionManager sessionManager,
JmsSupport jmsSupport,
org.mule.runtime.extension.api.runtime.source.SourceCallback<Object,T> sourceCallback,
org.mule.runtime.api.connection.ConnectionProvider<JmsTransactionalConnection> connectionProvider,
JmsConnectionExceptionResolver exceptionResolver)
Creates a new factory with the common information that is shared between
JmsMessageListener of the same
JmsListener |
| Modifier and Type | Method and Description |
|---|---|
JmsMessageListener |
createMessageListener(JmsSession session,
JmsListenerLock jmsLock)
Creates a new
JmsMessageListener with a given JmsSession and JmsListenerLock to be able to
synchronize the message dispatch. |
public JmsMessageListenerFactory(InternalAckMode ackMode, String encoding, String contentType, JmsConfig config, JmsSessionManager sessionManager, JmsSupport jmsSupport, org.mule.runtime.extension.api.runtime.source.SourceCallback<Object,T> sourceCallback, org.mule.runtime.api.connection.ConnectionProvider<JmsTransactionalConnection> connectionProvider, JmsConnectionExceptionResolver exceptionResolver)
JmsMessageListener of the same
JmsListenerackMode - Acknowledgement mode to use to consume the messagesencoding - Default encoding if the consumed message doesn't provide onecontentType - Default contentType if the consumed message doesn't provide oneconfig - JMS extension configurationsessionManager - manager to store the session and ACK ID of each dispatched messagejmsSupport - JMS Support that communicates the used specificationsourceCallback - callback use to dispatch the Message to the mule flowconnectionProvider - JMS Connection provider which will provide JmsConnection to bind into the
SourceCallbackContextexceptionResolver - Exception resolver used in case some broker specific conditions qualify as a connection issuepublic JmsMessageListener createMessageListener(JmsSession session, JmsListenerLock jmsLock)
JmsMessageListener with a given JmsSession and JmsListenerLock to be able to
synchronize the message dispatch.session - the session to create the JMS ConsumerjmsLock - the lock to use to synchronize the message dispatchJmsMessageListener ready to listen for messages and dispatch them to a Mule FlowCopyright © 2020. All rights reserved.