Class AbstractConnectionFactoryConfigurer<T extends org.springframework.amqp.rabbit.connection.AbstractConnectionFactory>
java.lang.Object
org.springframework.boot.autoconfigure.amqp.AbstractConnectionFactoryConfigurer<T>
- Type Parameters:
T- the connection factory type.
- Direct Known Subclasses:
CachingConnectionFactoryConfigurer
public abstract class AbstractConnectionFactoryConfigurer<T extends org.springframework.amqp.rabbit.connection.AbstractConnectionFactory>
extends Object
Configures
Rabbit ConnectionFactory with sensible
defaults.- Since:
- 2.6.0
- Author:
- Chris Bono, Moritz Halbritter, Andy Wilkinson, Phillip Webb
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractConnectionFactoryConfigurer(RabbitProperties properties) Creates a new configurer that will configure the connection factory using the givenproperties.protectedAbstractConnectionFactoryConfigurer(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 TypeMethodDescriptionfinal voidConfigures the givenconnectionFactorywith sensible defaults.protected abstract voidconfigure(T connectionFactory, RabbitProperties rabbitProperties) Configures the givenconnectionFactoryusing the givenrabbitProperties.protected final org.springframework.amqp.rabbit.connection.ConnectionNameStrategyfinal voidsetConnectionNameStrategy(org.springframework.amqp.rabbit.connection.ConnectionNameStrategy connectionNameStrategy)
-
Constructor Details
-
AbstractConnectionFactoryConfigurer
Creates a new configurer that will configure the connection factory using the givenproperties.- Parameters:
properties- the properties to use to configure the connection factory
-
AbstractConnectionFactoryConfigurer
protected AbstractConnectionFactoryConfigurer(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
-
getConnectionNameStrategy
protected final org.springframework.amqp.rabbit.connection.ConnectionNameStrategy getConnectionNameStrategy() -
setConnectionNameStrategy
public final void setConnectionNameStrategy(org.springframework.amqp.rabbit.connection.ConnectionNameStrategy connectionNameStrategy) -
configure
Configures the givenconnectionFactorywith sensible defaults.- Parameters:
connectionFactory- connection factory to configure
-
configure
Configures the givenconnectionFactoryusing the givenrabbitProperties.- Parameters:
connectionFactory- connection factory to configurerabbitProperties- properties to use for the configuration
-