Example usage for Java org.springframework.jms.connection CachingConnectionFactory fields, constructors, methods, implement or subclass
The text is from its open source code.
CachingConnectionFactory(ConnectionFactory targetConnectionFactory) Create a new CachingConnectionFactory for the given target ConnectionFactory. | |
CachingConnectionFactory() Create a new CachingConnectionFactory for bean-style usage. |
ConnectionFactory | getTargetConnectionFactory() Return the target ConnectionFactory which will be used to lazily create a single Connection, if any. |
void | setCacheConsumers(boolean cacheConsumers) Specify whether to cache JMS MessageConsumers per JMS Session instance (more specifically: one MessageConsumer per Destination, selector String and Session). |
void | setCacheProducers(boolean cacheProducers) Specify whether to cache JMS MessageProducers per JMS Session instance (more specifically: one MessageProducer per Destination and Session). |
void | setExceptionListener(@Nullable ExceptionListener exceptionListener) Specify an JMS ExceptionListener implementation that should be registered with the single Connection created by this factory. |
void | setReconnectOnException(boolean reconnectOnException) Specify whether the single Connection should be reset (to be subsequently renewed) when a JMSException is reported by the underlying Connection. |
void | setSessionCacheSize(int sessionCacheSize) Specify the desired size for the JMS Session cache (per JMS Session type). |
void | setTargetConnectionFactory(@Nullable ConnectionFactory targetConnectionFactory) Set the target ConnectionFactory which will be used to lazily create a single Connection. |