Class CachingConnectionFactoryConfigurer
java.lang.Object
org.springframework.boot.autoconfigure.amqp.AbstractConnectionFactoryConfigurer<org.springframework.amqp.rabbit.connection.CachingConnectionFactory>
org.springframework.boot.autoconfigure.amqp.CachingConnectionFactoryConfigurer
public class CachingConnectionFactoryConfigurer
extends AbstractConnectionFactoryConfigurer<org.springframework.amqp.rabbit.connection.CachingConnectionFactory>
Configures Rabbit
CachingConnectionFactory
with sensible defaults.- Since:
- 2.6.0
- Author:
- Chris Bono, Moritz Halbritter, Andy Wilkinson, Phillip Webb
-
Constructor Summary
ConstructorDescriptionCachingConnectionFactoryConfigurer
(RabbitProperties properties) Creates a new configurer that will configure the connection factory using the givenproperties
.CachingConnectionFactoryConfigurer
(RabbitProperties properties, RabbitConnectionDetails connectionDetails) Creates a new configurer that will configure the connection factory using the givenproperties
andconnectionDetails
, with the latter taking priority. -
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(org.springframework.amqp.rabbit.connection.CachingConnectionFactory connectionFactory, RabbitProperties rabbitProperties) Configures the givenconnectionFactory
using the givenrabbitProperties
.Methods inherited from class org.springframework.boot.autoconfigure.amqp.AbstractConnectionFactoryConfigurer
configure, getConnectionNameStrategy, setConnectionNameStrategy
-
Constructor Details
-
CachingConnectionFactoryConfigurer
Creates a new configurer that will configure the connection factory using the givenproperties
.- Parameters:
properties
- the properties to use to configure the connection factory
-
CachingConnectionFactoryConfigurer
public CachingConnectionFactoryConfigurer(RabbitProperties properties, RabbitConnectionDetails connectionDetails) Creates a new configurer that will configure the connection factory using the givenproperties
andconnectionDetails
, with the latter taking priority.- Parameters:
properties
- the properties to use to configure the connection factoryconnectionDetails
- the connection details to use to configure the connection factory- Since:
- 3.1.0
-
-
Method Details
-
configure
public void configure(org.springframework.amqp.rabbit.connection.CachingConnectionFactory connectionFactory, RabbitProperties rabbitProperties) Description copied from class:AbstractConnectionFactoryConfigurer
Configures the givenconnectionFactory
using the givenrabbitProperties
.- Specified by:
configure
in classAbstractConnectionFactoryConfigurer<org.springframework.amqp.rabbit.connection.CachingConnectionFactory>
- Parameters:
connectionFactory
- connection factory to configurerabbitProperties
- properties to use for the configuration
-