类 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 class
static class
static class
static enum
static class
Configuration properties forDirectMessageListenerContainer
.static class
static class
static class
static class
Configuration properties forSimpleMessageListenerContainer
.class
static final class
static class
static 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.int
Returns 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.AddressShuffleMode
getCache()
getHost()
getPort()
org.springframework.amqp.rabbit.connection.CachingConnectionFactory.ConfirmType
int
getSsl()
boolean
void
setAddresses
(List<String> addresses) void
setAddressShuffleMode
(org.springframework.amqp.rabbit.connection.AbstractConnectionFactory.AddressShuffleMode addressShuffleMode) void
setChannelRpcTimeout
(Duration channelRpcTimeout) void
setConnectionTimeout
(Duration connectionTimeout) void
void
setMaxInboundMessageBodySize
(DataSize maxInboundMessageBodySize) void
setPassword
(String password) void
void
setPublisherConfirmType
(org.springframework.amqp.rabbit.connection.CachingConnectionFactory.ConfirmType publisherConfirmType) void
setPublisherReturns
(boolean publisherReturns) void
setRequestedChannelMax
(int requestedChannelMax) void
setRequestedHeartbeat
(Duration requestedHeartbeat) void
setUsername
(String username) void
setVirtualHost
(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
-