Java org.springframework.jms.listener DefaultMessageListenerContainer fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.jms.listener DefaultMessageListenerContainer fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.jms.listener DefaultMessageListenerContainer.

The text is from its open source code.

Subclass

org.springframework.jms.listener.DefaultMessageListenerContainer has subclasses.
Click this link to see all its subclasses.

Field

intCACHE_CONNECTION
Constant that indicates to cache a shared JMS Connection for each listener thread.
intCACHE_CONSUMER
Constant that indicates to cache a shared JMS Connection , a JMS Session , and a JMS MessageConsumer for each listener thread.
intCACHE_AUTO
Constant that indicates automatic choice of an appropriate caching level (depending on the transaction management strategy).

Constructor

Method

voidafterPropertiesSet()
Delegates to #validateConfiguration() and #initialize() .
voiddestroy()
Calls #shutdown() when the BeanFactory destroys the container instance.
intgetCacheLevel()
Return the level of caching that this listener container is allowed to apply.
voidinitialize()
booleanisRegisteredWithDestination()
Return whether at least one consumer has entered a fixed registration with the target destination.
booleanisRunning()
Determine whether this container is currently running, that is, whether it has been started and not stopped yet.
voidsetAcceptMessagesWhileStopping(boolean acceptMessagesWhileStopping)
Set whether to accept received messages while the listener container in the process of stopping.
voidsetAutoStartup(boolean autoStartup)
Set whether to automatically start the container after initialization.
voidsetCacheLevel(int cacheLevel)
Specify the level of caching that this listener container is allowed to apply.
voidsetCacheLevelName(String constantName)
Specify the level of caching that this listener container is allowed to apply, in the form of the name of the corresponding constant: e.g.
voidsetClientId(@Nullable String clientId)
Specify the JMS client ID for a shared Connection created and used by this container.
voidsetConcurrency(String concurrency)
Specify concurrency limits via a "lower-upper" String, e.g.
voidsetConcurrentConsumers(int concurrentConsumers)
Specify the number of concurrent consumers to create.
voidsetConnectionFactory(@Nullable ConnectionFactory connectionFactory)
Set the ConnectionFactory to use for obtaining JMS Connection Connections .
voidsetDestination(@Nullable Destination destination)
Set the destination to receive messages from.
voidsetDestinationName(@Nullable String destinationName)
Set the name of the destination to receive messages from.
voidsetDestinationResolver(DestinationResolver destinationResolver)
Set the DestinationResolver that is to be used to resolve javax.jms.Destination references for this accessor.
voidsetDurableSubscriptionName(@Nullable String durableSubscriptionName)
Set the name of a durable subscription to create.
voidsetExceptionListener(@Nullable ExceptionListener exceptionListener)
Set the JMS ExceptionListener to notify in case of a JMSException thrown by the registered message listener or the invocation infrastructure.
voidsetExposeListenerSession(boolean exposeListenerSession)
Set whether to expose the listener JMS Session to a registered SessionAwareMessageListener as well as to org.springframework.jms.core.JmsTemplate calls.
voidsetIdleTaskExecutionLimit(int idleTaskExecutionLimit)
Specify the limit for idle executions of a consumer task, not having received any message within its execution.
voidsetMaxConcurrentConsumers(int maxConcurrentConsumers)
Specify the maximum number of concurrent consumers to create.
voidsetMaxMessagesPerTask(int maxMessagesPerTask)
Specify the maximum number of messages to process in one task.
voidsetMessageConverter(@Nullable MessageConverter messageConverter)
Set the MessageConverter strategy for converting JMS Messages.
voidsetMessageListener(@Nullable Object messageListener)
Set the message listener implementation to register.
voidsetMessageSelector(@Nullable String messageSelector)
Set the JMS message selector expression (or null if none).
voidsetPubSubDomain(boolean pubSubDomain)
Configure the destination accessor with knowledge of the JMS domain used.
voidsetPubSubNoLocal(boolean pubSubNoLocal)
Set whether to inhibit the delivery of messages published by its own connection.
voidsetReceiveTimeout(long receiveTimeout)
Set the timeout to use for receive calls, in milliseconds.
voidsetRecoveryInterval(long recoveryInterval)
Specify the interval between recovery attempts, in milliseconds.
voidsetSessionAcknowledgeMode(int sessionAcknowledgeMode)
Set the JMS acknowledgement mode that is used when creating a JMS Session to send a message.
voidsetSessionTransacted(boolean sessionTransacted)
voidsetSubscriptionDurable(boolean subscriptionDurable)
Set whether to make the subscription durable.
voidsetSubscriptionShared(boolean subscriptionShared)
Set whether to make the subscription shared.
voidsetTaskExecutor(Executor taskExecutor)
Set the Spring TaskExecutor to use for running the listener threads.
voidsetTransactionManager(@Nullable PlatformTransactionManager transactionManager)
Specify the Spring org.springframework.transaction.PlatformTransactionManager to use for transactional wrapping of message reception plus listener execution.
voidsetTransactionName(String transactionName)
Specify the transaction name to use for transactional wrapping.
voidsetTransactionTimeout(int transactionTimeout)
Specify the transaction timeout to use for transactional wrapping, in seconds.
voidshutdown()
Stop the shared Connection, call #doShutdown() , and close this container.
voidstart()
Overridden to reset the stop callback, if any.
voidstop()
Stop this container.