Example usage for Java org.springframework.jms.listener DefaultMessageListenerContainer fields, constructors, methods, implement or subclass
The text is from its open source code.
int | CACHE_CONNECTION Constant that indicates to cache a shared JMS Connection for each listener thread. |
int | CACHE_CONSUMER Constant that indicates to cache a shared JMS Connection , a JMS Session , and a JMS MessageConsumer for each listener thread. |
int | CACHE_AUTO Constant that indicates automatic choice of an appropriate caching level (depending on the transaction management strategy). |
void | afterPropertiesSet() Delegates to #validateConfiguration() and #initialize() . |
void | destroy() Calls #shutdown() when the BeanFactory destroys the container instance. |
int | getCacheLevel() Return the level of caching that this listener container is allowed to apply. |
void | initialize() |
boolean | isRegisteredWithDestination() Return whether at least one consumer has entered a fixed registration with the target destination. |
boolean | isRunning() Determine whether this container is currently running, that is, whether it has been started and not stopped yet. |
void | setAcceptMessagesWhileStopping(boolean acceptMessagesWhileStopping) Set whether to accept received messages while the listener container in the process of stopping. |
void | setAutoStartup(boolean autoStartup) Set whether to automatically start the container after initialization. |
void | setCacheLevel(int cacheLevel) Specify the level of caching that this listener container is allowed to apply. |
void | setCacheLevelName(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. |
void | setClientId(@Nullable String clientId) Specify the JMS client ID for a shared Connection created and used by this container. |
void | setConcurrency(String concurrency) Specify concurrency limits via a "lower-upper" String, e.g. |
void | setConcurrentConsumers(int concurrentConsumers) Specify the number of concurrent consumers to create. |
void | setConnectionFactory(@Nullable ConnectionFactory connectionFactory) Set the ConnectionFactory to use for obtaining JMS Connection Connections . |
void | setDestination(@Nullable Destination destination) Set the destination to receive messages from. |
void | setDestinationName(@Nullable String destinationName) Set the name of the destination to receive messages from. |
void | setDestinationResolver(DestinationResolver destinationResolver) Set the DestinationResolver that is to be used to resolve javax.jms.Destination references for this accessor. |
void | setDurableSubscriptionName(@Nullable String durableSubscriptionName) Set the name of a durable subscription to create. |
void | setExceptionListener(@Nullable ExceptionListener exceptionListener) Set the JMS ExceptionListener to notify in case of a JMSException thrown by the registered message listener or the invocation infrastructure. |
void | setExposeListenerSession(boolean exposeListenerSession) Set whether to expose the listener JMS Session to a registered SessionAwareMessageListener as well as to org.springframework.jms.core.JmsTemplate calls. |
void | setIdleTaskExecutionLimit(int idleTaskExecutionLimit) Specify the limit for idle executions of a consumer task, not having received any message within its execution. |
void | setMaxConcurrentConsumers(int maxConcurrentConsumers) Specify the maximum number of concurrent consumers to create. |
void | setMaxMessagesPerTask(int maxMessagesPerTask) Specify the maximum number of messages to process in one task. |
void | setMessageConverter(@Nullable MessageConverter messageConverter) Set the MessageConverter strategy for converting JMS Messages. |
void | setMessageListener(@Nullable Object messageListener) Set the message listener implementation to register. |
void | setMessageSelector(@Nullable String messageSelector) Set the JMS message selector expression (or null if none). |
void | setPubSubDomain(boolean pubSubDomain) Configure the destination accessor with knowledge of the JMS domain used. |
void | setPubSubNoLocal(boolean pubSubNoLocal) Set whether to inhibit the delivery of messages published by its own connection. |
void | setReceiveTimeout(long receiveTimeout) Set the timeout to use for receive calls, in milliseconds. |
void | setRecoveryInterval(long recoveryInterval) Specify the interval between recovery attempts, in milliseconds. |
void | setSessionAcknowledgeMode(int sessionAcknowledgeMode) Set the JMS acknowledgement mode that is used when creating a JMS Session to send a message. |
void | setSessionTransacted(boolean sessionTransacted) |
void | setSubscriptionDurable(boolean subscriptionDurable) Set whether to make the subscription durable. |
void | setSubscriptionShared(boolean subscriptionShared) Set whether to make the subscription shared. |
void | setTaskExecutor(Executor taskExecutor) Set the Spring TaskExecutor to use for running the listener threads. |
void | setTransactionManager(@Nullable PlatformTransactionManager transactionManager) Specify the Spring org.springframework.transaction.PlatformTransactionManager to use for transactional wrapping of message reception plus listener execution. |
void | setTransactionName(String transactionName) Specify the transaction name to use for transactional wrapping. |
void | setTransactionTimeout(int transactionTimeout) Specify the transaction timeout to use for transactional wrapping, in seconds. |
void | shutdown() Stop the shared Connection, call #doShutdown() , and close this container. |
void | start() Overridden to reset the stop callback, if any. |
void | stop() Stop this container. |