T
- the connection factory type.public abstract class AbstractConnectionFactoryConfigurer<T extends org.springframework.amqp.rabbit.connection.AbstractConnectionFactory> extends Object
Rabbit ConnectionFactory
with sensible
defaults.Modifier | Constructor and Description |
---|---|
protected |
AbstractConnectionFactoryConfigurer(RabbitProperties properties) |
Modifier and Type | Method and Description |
---|---|
void |
configure(T connectionFactory)
Configures the given
connectionFactory with sensible defaults. |
protected abstract void |
configure(T connectionFactory,
RabbitProperties rabbitProperties)
Configures the given
connectionFactory using the given
rabbitProperties . |
protected org.springframework.amqp.rabbit.connection.ConnectionNameStrategy |
getConnectionNameStrategy() |
void |
setConnectionNameStrategy(org.springframework.amqp.rabbit.connection.ConnectionNameStrategy connectionNameStrategy) |
protected AbstractConnectionFactoryConfigurer(RabbitProperties properties)
protected final org.springframework.amqp.rabbit.connection.ConnectionNameStrategy getConnectionNameStrategy()
public final void setConnectionNameStrategy(org.springframework.amqp.rabbit.connection.ConnectionNameStrategy connectionNameStrategy)
public final void configure(T connectionFactory)
connectionFactory
with sensible defaults.connectionFactory
- connection factory to configureprotected abstract void configure(T connectionFactory, RabbitProperties rabbitProperties)
connectionFactory
using the given
rabbitProperties
.connectionFactory
- connection factory to configurerabbitProperties
- properties to use for the configuration