类 RabbitProperties
java.lang.Object
org.springframework.boot.autoconfigure.amqp.RabbitProperties
Configuration properties for Rabbit.
- 从以下版本开始:
- 1.0.0
- 作者:
- Greg Turnquist, Dave Syer, Stephane Nicoll, Andy Wilkinson, Josh Thornhill, Gary Russell, Artsiom Yudovin, Franjo Zilic, Eddú Meléndez, Rafael Carvalho, Scott Frederick, Lasse Wulff, Yanming Zhou
-
嵌套类概要
嵌套类修饰符和类型类说明static classstatic classstatic classstatic enumstatic classConfiguration properties forDirectMessageListenerContainer.static classstatic classstatic classstatic classConfiguration properties forSimpleMessageListenerContainer.classstatic final classstatic classstatic class -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Returns the configured addresses or a single address (host:port) created from the configured host and port if no addresses have been set.Returns the host from the first address, or the configured host if no addresses have been set.If addresses have been set and the first address has a password it is returned.intReturns the port from the first address, or the configured port if no addresses have been set.If addresses have been set and the first address has a username it is returned.If addresses have been set and the first address has a virtual host it is returned.org.springframework.amqp.rabbit.connection.AbstractConnectionFactory.AddressShuffleModegetCache()getHost()getPort()org.springframework.amqp.rabbit.connection.CachingConnectionFactory.ConfirmTypeintgetSsl()booleanvoidsetAddresses(List<String> addresses) voidsetAddressShuffleMode(org.springframework.amqp.rabbit.connection.AbstractConnectionFactory.AddressShuffleMode addressShuffleMode) voidsetChannelRpcTimeout(Duration channelRpcTimeout) voidsetConnectionTimeout(Duration connectionTimeout) voidvoidsetMaxInboundMessageBodySize(DataSize maxInboundMessageBodySize) voidsetPassword(String password) voidvoidsetPublisherConfirmType(org.springframework.amqp.rabbit.connection.CachingConnectionFactory.ConfirmType publisherConfirmType) voidsetPublisherReturns(boolean publisherReturns) voidsetRequestedChannelMax(int requestedChannelMax) voidsetRequestedHeartbeat(Duration requestedHeartbeat) voidsetUsername(String username) voidsetVirtualHost(String virtualHost)
-
构造器详细资料
-
RabbitProperties
public RabbitProperties()
-
-
方法详细资料
-
getHost
-
determineHost
Returns the host from the first address, or the configured host if no addresses have been set.- 返回:
- the host
- 另请参阅:
-
setHost
-
getPort
-
determinePort
public int determinePort()Returns the port from the first address, or the configured port if no addresses have been set.- 返回:
- the port
- 另请参阅:
-
setPort
-
getAddresses
-
determineAddresses
Returns the configured addresses or a single address (host:port) created from the configured host and port if no addresses have been set.- 返回:
- the addresses
-
setAddresses
-
getUsername
-
determineUsername
If addresses have been set and the first address has a username it is returned. Otherwise returns the result of callinggetUsername().- 返回:
- the username
- 另请参阅:
-
setUsername
-
getPassword
-
determinePassword
If addresses have been set and the first address has a password it is returned. Otherwise returns the result of callinggetPassword().- 返回:
- the password or
null - 另请参阅:
-
setPassword
-
getSsl
-
getVirtualHost
-
determineVirtualHost
If addresses have been set and the first address has a virtual host it is returned. Otherwise returns the result of callinggetVirtualHost().- 返回:
- the virtual host or
null - 另请参阅:
-
setVirtualHost
-
getAddressShuffleMode
public org.springframework.amqp.rabbit.connection.AbstractConnectionFactory.AddressShuffleMode getAddressShuffleMode() -
setAddressShuffleMode
public void setAddressShuffleMode(org.springframework.amqp.rabbit.connection.AbstractConnectionFactory.AddressShuffleMode addressShuffleMode) -
getRequestedHeartbeat
-
setRequestedHeartbeat
-
getRequestedChannelMax
public int getRequestedChannelMax() -
setRequestedChannelMax
public void setRequestedChannelMax(int requestedChannelMax) -
isPublisherReturns
public boolean isPublisherReturns() -
setPublisherReturns
public void setPublisherReturns(boolean publisherReturns) -
getConnectionTimeout
-
setPublisherConfirmType
public void setPublisherConfirmType(org.springframework.amqp.rabbit.connection.CachingConnectionFactory.ConfirmType publisherConfirmType) -
getPublisherConfirmType
public org.springframework.amqp.rabbit.connection.CachingConnectionFactory.ConfirmType getPublisherConfirmType() -
setConnectionTimeout
-
getChannelRpcTimeout
-
setChannelRpcTimeout
-
getMaxInboundMessageBodySize
-
setMaxInboundMessageBodySize
-
getCache
-
getListener
-
getTemplate
-
getStream
-