类 AbstractConnectionFactoryConfigurer<T extends org.springframework.amqp.rabbit.connection.AbstractConnectionFactory>
java.lang.Object
org.springframework.boot.autoconfigure.amqp.AbstractConnectionFactoryConfigurer<T>
- 类型参数:
T- the connection factory type.
public abstract class AbstractConnectionFactoryConfigurer<T extends org.springframework.amqp.rabbit.connection.AbstractConnectionFactory>
extends Object
Configures
Rabbit ConnectionFactory with sensible
defaults.- 从以下版本开始:
- 2.6.0
- 作者:
- Chris Bono, Moritz Halbritter, Andy Wilkinson, Phillip Webb
-
构造器概要
构造器限定符构造器说明protectedAbstractConnectionFactoryConfigurer(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. -
方法概要
修饰符和类型方法说明final 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)
-
构造器详细资料
-
AbstractConnectionFactoryConfigurer
Creates a new configurer that will configure the connection factory using the givenproperties.- 参数:
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.- 参数:
properties- the properties to use to configure the connection factoryconnectionDetails- the connection details to use to configure the connection factory- 从以下版本开始:
- 3.1.0
-
-
方法详细资料
-
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.- 参数:
connectionFactory- connection factory to configure
-
configure
Configures the givenconnectionFactoryusing the givenrabbitProperties.- 参数:
connectionFactory- connection factory to configurerabbitProperties- properties to use for the configuration
-