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 tuned using
configuration properties.
Can be injected into application code and used to define a custom
CachingConnectionFactory whose configuration is based upon that produced by
auto-configuration.
- Since:
- 2.6.0
- Author:
- Chris Bono, Moritz Halbritter, Andy Wilkinson, Phillip Webb
-
Constructor Summary
ConstructorsConstructorDescriptionCachingConnectionFactoryConfigurer(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 givenpropertiesandconnectionDetails, with the latter taking priority. -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(org.springframework.amqp.rabbit.connection.CachingConnectionFactory connectionFactory, RabbitProperties rabbitProperties) Configures the givenconnectionFactoryusing 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 givenpropertiesandconnectionDetails, 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:AbstractConnectionFactoryConfigurerConfigures the givenconnectionFactoryusing the givenrabbitProperties.- Specified by:
configurein classAbstractConnectionFactoryConfigurer<org.springframework.amqp.rabbit.connection.CachingConnectionFactory>- Parameters:
connectionFactory- connection factory to configurerabbitProperties- properties to use for the configuration
-