类 RabbitConnectionFactoryBeanConfigurer
java.lang.Object
org.springframework.boot.autoconfigure.amqp.RabbitConnectionFactoryBeanConfigurer
Configures
RabbitConnectionFactoryBean
with sensible defaults.- 从以下版本开始:
- 2.6.0
- 作者:
- Chris Bono, Moritz Halbritter, Andy Wilkinson, Phillip Webb, Scott Frederick
-
构造器概要
构造器构造器说明RabbitConnectionFactoryBeanConfigurer
(ResourceLoader resourceLoader, RabbitProperties properties) Creates a new configurer that will use the givenresourceLoader
andproperties
.RabbitConnectionFactoryBeanConfigurer
(ResourceLoader resourceLoader, RabbitProperties properties, RabbitConnectionDetails connectionDetails) Creates a new configurer that will use the givenresourceLoader
,properties
, andconnectionDetails
.RabbitConnectionFactoryBeanConfigurer
(ResourceLoader resourceLoader, RabbitProperties properties, RabbitConnectionDetails connectionDetails, SslBundles sslBundles) Creates a new configurer that will use the givenresourceLoader
,properties
,connectionDetails
, andsslBundles
. -
方法概要
修饰符和类型方法说明void
configure
(org.springframework.amqp.rabbit.connection.RabbitConnectionFactoryBean factory) Configure the specified rabbit connection factory bean.void
setCredentialsProvider
(com.rabbitmq.client.impl.CredentialsProvider credentialsProvider) void
setCredentialsRefreshService
(com.rabbitmq.client.impl.CredentialsRefreshService credentialsRefreshService)
-
构造器详细资料
-
RabbitConnectionFactoryBeanConfigurer
public RabbitConnectionFactoryBeanConfigurer(ResourceLoader resourceLoader, RabbitProperties properties) Creates a new configurer that will use the givenresourceLoader
andproperties
.- 参数:
resourceLoader
- the resource loaderproperties
- the properties
-
RabbitConnectionFactoryBeanConfigurer
public RabbitConnectionFactoryBeanConfigurer(ResourceLoader resourceLoader, RabbitProperties properties, RabbitConnectionDetails connectionDetails) Creates a new configurer that will use the givenresourceLoader
,properties
, andconnectionDetails
. The connection details have priority over the properties.- 参数:
resourceLoader
- the resource loaderproperties
- the propertiesconnectionDetails
- the connection details- 从以下版本开始:
- 3.1.0
-
RabbitConnectionFactoryBeanConfigurer
public RabbitConnectionFactoryBeanConfigurer(ResourceLoader resourceLoader, RabbitProperties properties, RabbitConnectionDetails connectionDetails, SslBundles sslBundles) Creates a new configurer that will use the givenresourceLoader
,properties
,connectionDetails
, andsslBundles
. The connection details have priority over the properties.- 参数:
resourceLoader
- the resource loaderproperties
- the propertiesconnectionDetails
- the connection detailssslBundles
- the SSL bundles- 从以下版本开始:
- 3.2.0
-
-
方法详细资料
-
setCredentialsProvider
public void setCredentialsProvider(com.rabbitmq.client.impl.CredentialsProvider credentialsProvider) -
setCredentialsRefreshService
public void setCredentialsRefreshService(com.rabbitmq.client.impl.CredentialsRefreshService credentialsRefreshService) -
configure
public void configure(org.springframework.amqp.rabbit.connection.RabbitConnectionFactoryBean factory) Configure the specified rabbit connection factory bean. The factory bean can be further tuned and default settings can be overridden. It is the responsibility of the caller to invokeRabbitConnectionFactoryBean.afterPropertiesSet()
though.- 参数:
factory
- theRabbitConnectionFactoryBean
instance to configure
-