Class RabbitProperties
java.lang.Object
org.springframework.boot.amqp.autoconfigure.RabbitProperties
Configuration properties for Rabbit.
- Since:
- 4.0.0
- Author:
- 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
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic enumstatic classConfiguration properties forDirectMessageListenerContainer.static classstatic classstatic classstatic classConfiguration properties forSimpleMessageListenerContainer.classstatic final classstatic classstatic class
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturns 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.@Nullable StringIf 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.@Nullable StringIf addresses have been set and the first address has a virtual host it is returned.org.springframework.amqp.rabbit.connection.AbstractConnectionFactory.AddressShuffleModegetCache()@Nullable DurationgetHost()@Nullable IntegergetPort()@Nullable org.springframework.amqp.rabbit.connection.CachingConnectionFactory.ConfirmTypeint@Nullable DurationgetSsl()@Nullable StringbooleanvoidsetAddresses(List<String> addresses) voidsetAddressShuffleMode(org.springframework.amqp.rabbit.connection.AbstractConnectionFactory.AddressShuffleMode addressShuffleMode) voidsetChannelRpcTimeout(Duration channelRpcTimeout) voidsetConnectionTimeout(@Nullable Duration connectionTimeout) voidvoidsetMaxInboundMessageBodySize(DataSize maxInboundMessageBodySize) voidsetPassword(String password) voidvoidsetPublisherConfirmType(@Nullable org.springframework.amqp.rabbit.connection.CachingConnectionFactory.ConfirmType publisherConfirmType) voidsetPublisherReturns(boolean publisherReturns) voidsetRequestedChannelMax(int requestedChannelMax) voidsetRequestedHeartbeat(@Nullable Duration requestedHeartbeat) voidsetUsername(String username) voidsetVirtualHost(@Nullable String virtualHost) 
- 
Constructor Details- 
RabbitPropertiespublic RabbitProperties()
 
- 
- 
Method Details- 
getHost
- 
determineHostReturns the host from the first address, or the configured host if no addresses have been set.- Returns:
- the host
- See Also:
 
- 
setHost
- 
getPort
- 
determinePortpublic int determinePort()Returns the port from the first address, or the configured port if no addresses have been set.- Returns:
- the port
- See Also:
 
- 
setPort
- 
getAddresses
- 
determineAddresses
- 
setAddresses
- 
getUsername
- 
determineUsernameIf addresses have been set and the first address has a username it is returned. Otherwise returns the result of callinggetUsername().- Returns:
- the username
- See Also:
 
- 
setUsername
- 
getPassword
- 
determinePasswordIf addresses have been set and the first address has a password it is returned. Otherwise returns the result of callinggetPassword().- Returns:
- the password or null
- See Also:
 
- 
setPassword
- 
getSsl
- 
getVirtualHost
- 
determineVirtualHostIf addresses have been set and the first address has a virtual host it is returned. Otherwise returns the result of callinggetVirtualHost().- Returns:
- the virtual host or null
- See Also:
 
- 
setVirtualHost
- 
getAddressShuffleModepublic org.springframework.amqp.rabbit.connection.AbstractConnectionFactory.AddressShuffleMode getAddressShuffleMode()
- 
setAddressShuffleModepublic void setAddressShuffleMode(org.springframework.amqp.rabbit.connection.AbstractConnectionFactory.AddressShuffleMode addressShuffleMode) 
- 
getRequestedHeartbeat
- 
setRequestedHeartbeat
- 
getRequestedChannelMaxpublic int getRequestedChannelMax()
- 
setRequestedChannelMaxpublic void setRequestedChannelMax(int requestedChannelMax) 
- 
isPublisherReturnspublic boolean isPublisherReturns()
- 
setPublisherReturnspublic void setPublisherReturns(boolean publisherReturns) 
- 
getConnectionTimeout
- 
setPublisherConfirmTypepublic void setPublisherConfirmType(@Nullable org.springframework.amqp.rabbit.connection.CachingConnectionFactory.ConfirmType publisherConfirmType) 
- 
getPublisherConfirmTypepublic @Nullable org.springframework.amqp.rabbit.connection.CachingConnectionFactory.ConfirmType getPublisherConfirmType()
- 
setConnectionTimeout
- 
getChannelRpcTimeout
- 
setChannelRpcTimeout
- 
getMaxInboundMessageBodySize
- 
setMaxInboundMessageBodySize
- 
getCache
- 
getListener
- 
getTemplate
- 
getStream
 
-