类 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.- 从以下版本开始:
- 2.6.0
- 作者:
- Chris Bono, Moritz Halbritter, Andy Wilkinson, Phillip Webb
-
构造器概要
构造器构造器说明CachingConnectionFactoryConfigurer(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. -
方法概要
修饰符和类型方法说明voidconfigure(org.springframework.amqp.rabbit.connection.CachingConnectionFactory connectionFactory, RabbitProperties rabbitProperties) Configures the givenconnectionFactoryusing the givenrabbitProperties.从类继承的方法 org.springframework.boot.autoconfigure.amqp.AbstractConnectionFactoryConfigurer
configure, getConnectionNameStrategy, setConnectionNameStrategy
-
构造器详细资料
-
CachingConnectionFactoryConfigurer
Creates a new configurer that will configure the connection factory using the givenproperties.- 参数:
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.- 参数:
properties- the properties to use to configure the connection factoryconnectionDetails- the connection details to use to configure the connection factory- 从以下版本开始:
- 3.1.0
-
-
方法详细资料
-
configure
public void configure(org.springframework.amqp.rabbit.connection.CachingConnectionFactory connectionFactory, RabbitProperties rabbitProperties) 从类复制的说明:AbstractConnectionFactoryConfigurerConfigures the givenconnectionFactoryusing the givenrabbitProperties.- 指定者:
configure在类中AbstractConnectionFactoryConfigurer<org.springframework.amqp.rabbit.connection.CachingConnectionFactory>- 参数:
connectionFactory- connection factory to configurerabbitProperties- properties to use for the configuration
-