public class SharedQueueMessageListenerContainer extends DefaultJmsMessageListenerContainer
DefaultMessageListenerContainer is used for reply queues which are shared.
This implementation supports using a fixed or dynamic JMS Message Selector to pickup the designated reply messages
from the shared queue. Since the queue is shared, then we can only pickup the reply messages which is intended for
us, so to support that we must use JMS Message Selectors.
See more details at camel-jms.ExclusiveQueueMessageListenerContainerCACHE_AUTO, CACHE_CONNECTION, CACHE_CONSUMER, CACHE_NONE, CACHE_SESSION, DEFAULT_RECOVERY_INTERVAL, DEFAULT_THREAD_NAME_PREFIXDEFAULT_RECEIVE_TIMEOUTlifecycleMonitor, sharedConnectionMonitor| Constructor and Description |
|---|
SharedQueueMessageListenerContainer(JmsEndpoint endpoint,
MessageSelectorCreator creator)
Use a dynamic JMS message selector
|
SharedQueueMessageListenerContainer(JmsEndpoint endpoint,
String fixedMessageSelector)
Use a fixed JMS message selector
|
| Modifier and Type | Method and Description |
|---|---|
String |
getMessageSelector() |
createDefaultTaskExecutor, destroy, isAllowQuickStop, runningAllowed, stop, stopSharedConnectionapplyBackOffTime, doInitialize, doRescheduleTask, doShutdown, establishSharedConnection, getActiveConsumerCount, getCacheLevel, getConcurrentConsumers, getIdleConsumerLimit, getIdleReceivesPerTaskLimit, getIdleTaskExecutionLimit, getMaxConcurrentConsumers, getMaxMessagesPerTask, getScheduledConsumerCount, handleListenerSetupFailure, initialize, isRecovering, isRegisteredWithDestination, messageReceived, noMessageReceived, recoverAfterListenerSetupFailure, refreshConnectionUntilSuccessful, refreshDestination, scheduleNewInvokerIfAppropriate, setBackOff, setCacheLevel, setCacheLevelName, setConcurrency, setConcurrentConsumers, setIdleConsumerLimit, setIdleReceivesPerTaskLimit, setIdleTaskExecutionLimit, setMaxConcurrentConsumers, setMaxMessagesPerTask, setRecoveryInterval, setTaskExecutor, sharedConnectionEnabled, start, startSharedConnection, stopcreateListenerConsumer, doReceiveAndExecute, getConnection, getReceiveTimeout, getSession, getTransactionManager, isSessionLocallyTransacted, receiveAndExecute, receiveMessage, setReceiveTimeout, setSessionTransacted, setTransactionManager, setTransactionName, setTransactionTimeout, shouldCommitAfterNoMessageReceivedcheckMessageListener, commitIfNecessary, createConsumer, doExecuteListener, doInvokeListener, doInvokeListener, executeListener, getDefaultSubscriptionName, getDestination, getDestinationDescription, getDestinationName, getDurableSubscriptionName, getErrorHandler, getExceptionListener, getMessageConverter, getMessageListener, getReplyQosSettings, getSubscriptionName, handleListenerException, invokeErrorHandler, invokeExceptionListener, invokeListener, isAcceptMessagesWhileStopping, isExposeListenerSession, isPubSubNoLocal, isReplyPubSubDomain, isSubscriptionDurable, isSubscriptionShared, rollbackIfNecessary, rollbackOnExceptionIfNecessary, setAcceptMessagesWhileStopping, setDestination, setDestinationName, setDurableSubscriptionName, setErrorHandler, setExceptionListener, setExposeListenerSession, setMessageConverter, setMessageListener, setMessageSelector, setPubSubNoLocal, setReplyPubSubDomain, setReplyQosSettings, setSubscriptionDurable, setSubscriptionName, setSubscriptionShared, setupMessageListener, validateConfigurationafterPropertiesSet, createSharedConnection, doStart, doStop, getBeanName, getClientId, getPausedTaskCount, getPhase, getSharedConnection, isActive, isAutoStartup, isRunning, logRejectedTask, prepareSharedConnection, refreshSharedConnection, rescheduleTaskIfNecessary, resumePausedTasks, setAutoStartup, setBeanName, setClientId, setPhase, shutdowngetDestinationResolver, isPubSubDomain, receiveFromConsumer, resolveDestinationName, setDestinationResolver, setPubSubDomainconvertJmsAccessException, createConnection, createSession, getConnectionFactory, getSessionAcknowledgeMode, isClientAcknowledge, isSessionTransacted, obtainConnectionFactory, setConnectionFactory, setSessionAcknowledgeMode, setSessionAcknowledgeModeNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic SharedQueueMessageListenerContainer(JmsEndpoint endpoint, String fixedMessageSelector)
endpoint - the endpointfixedMessageSelector - the fixed selectorpublic SharedQueueMessageListenerContainer(JmsEndpoint endpoint, MessageSelectorCreator creator)
endpoint - the endpointcreator - the create to create the dynamic selectorpublic String getMessageSelector()
getMessageSelector in class org.springframework.jms.listener.AbstractMessageListenerContainerApache Camel