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
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractConnectionFactoryConfigurer
(RabbitProperties properties) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
Configures the givenconnectionFactory
with sensible defaults.protected abstract void
configure
(T connectionFactory, RabbitProperties rabbitProperties) Configures the givenconnectionFactory
using the givenrabbitProperties
.protected final org.springframework.amqp.rabbit.connection.ConnectionNameStrategy
final void
setConnectionNameStrategy
(org.springframework.amqp.rabbit.connection.ConnectionNameStrategy connectionNameStrategy)
-
Constructor Details
-
AbstractConnectionFactoryConfigurer
-
-
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 givenconnectionFactory
with sensible defaults.- Parameters:
connectionFactory
- connection factory to configure
-
configure
Configures the givenconnectionFactory
using the givenrabbitProperties
.- Parameters:
connectionFactory
- connection factory to configurerabbitProperties
- properties to use for the configuration
-