Java org.springframework.jms.connection CachingConnectionFactory fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.jms.connection CachingConnectionFactory fields, constructors, methods, implement or subclass

Introduction

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

The text is from its open source code.

Subclass

org.springframework.jms.connection.CachingConnectionFactory has subclasses.
Click this link to see all its subclasses.

Constructor

CachingConnectionFactory(ConnectionFactory targetConnectionFactory)
Create a new CachingConnectionFactory for the given target ConnectionFactory.
CachingConnectionFactory()
Create a new CachingConnectionFactory for bean-style usage.

Method

ConnectionFactorygetTargetConnectionFactory()
Return the target ConnectionFactory which will be used to lazily create a single Connection, if any.
voidsetCacheConsumers(boolean cacheConsumers)
Specify whether to cache JMS MessageConsumers per JMS Session instance (more specifically: one MessageConsumer per Destination, selector String and Session).
voidsetCacheProducers(boolean cacheProducers)
Specify whether to cache JMS MessageProducers per JMS Session instance (more specifically: one MessageProducer per Destination and Session).
voidsetExceptionListener(@Nullable ExceptionListener exceptionListener)
Specify an JMS ExceptionListener implementation that should be registered with the single Connection created by this factory.
voidsetReconnectOnException(boolean reconnectOnException)
Specify whether the single Connection should be reset (to be subsequently renewed) when a JMSException is reported by the underlying Connection.
voidsetSessionCacheSize(int sessionCacheSize)
Specify the desired size for the JMS Session cache (per JMS Session type).
voidsetTargetConnectionFactory(@Nullable ConnectionFactory targetConnectionFactory)
Set the target ConnectionFactory which will be used to lazily create a single Connection.