Class RabbitProperties
java.lang.Object
org.springframework.boot.rabbitmq.autoconfigure.RabbitProperties
Configuration properties for Rabbit.
- Since:
- 4.2.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, Jay Choi
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic enumstatic classConfiguration properties forDirectMessageListenerContainer.static classstatic classstatic classstatic classConfiguration properties forSimpleMessageListenerContainer.classstatic final classstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.since 4.2.0 for removal in 4.4.0 with no replacementDeprecated, for removal: This API element is subject to removal in a future version.since 4.2.0 for removal in 4.4.0 with no replacementDeprecated, for removal: This API element is subject to removal in a future version.since 4.2.0 for removal in 4.4.0 with no replacementintDeprecated, for removal: This API element is subject to removal in a future version.since 4.2.0 for removal in 4.4.0 with no replacementDeprecated, for removal: This API element is subject to removal in a future version.since 4.2.0 for removal in 4.4.0 with no replacementDeprecated, for removal: This API element is subject to removal in a future version.since 4.2.0 for removal in 4.4.0 with no replacementgetCache()getHost()getPort()intgetSsl()booleanvoidsetAddresses(List<String> addresses) voidsetAddressShuffleMode(AbstractConnectionFactory.AddressShuffleMode addressShuffleMode) voidsetChannelRpcTimeout(Duration channelRpcTimeout) voidsetConnectionTimeout(@Nullable Duration connectionTimeout) voidvoidsetMaxInboundMessageBodySize(DataSize maxInboundMessageBodySize) voidsetPassword(String password) voidvoidsetPublisherConfirmType(@Nullable CachingConnectionFactory.ConfirmType publisherConfirmType) voidsetPublisherReturns(boolean publisherReturns) voidsetRequestedChannelMax(int requestedChannelMax) voidsetRequestedHeartbeat(@Nullable Duration requestedHeartbeat) voidsetUsername(String username) voidsetVirtualHost(@Nullable String virtualHost)
-
Constructor Details
-
RabbitProperties
public RabbitProperties()
-
-
Method Details
-
determineHost
Deprecated, for removal: This API element is subject to removal in a future version.since 4.2.0 for removal in 4.4.0 with no replacementReturns the host from the first address, or the configured host if no addresses have been set.- Returns:
- the host
- See Also:
-
getHost
-
setHost
-
getPort
-
determinePort
Deprecated, for removal: This API element is subject to removal in a future version.since 4.2.0 for removal in 4.4.0 with no replacementReturns the port from the first address, or the configured port if no addresses have been set.- Returns:
- the port
- See Also:
-
setPort
-
getAddresses
-
determineAddresses
Deprecated, for removal: This API element is subject to removal in a future version.since 4.2.0 for removal in 4.4.0 with no replacementReturns the configured addresses or a single address (host:port) created from the configured host and port if no addresses have been set.- Returns:
- the addresses
-
setAddresses
-
determineUsername
Deprecated, for removal: This API element is subject to removal in a future version.since 4.2.0 for removal in 4.4.0 with no replacementIf 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:
-
getUsername
-
setUsername
-
determinePassword
Deprecated, for removal: This API element is subject to removal in a future version.since 4.2.0 for removal in 4.4.0 with no replacementIf 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:
-
getPassword
-
setPassword
-
getSsl
-
determineVirtualHost
Deprecated, for removal: This API element is subject to removal in a future version.since 4.2.0 for removal in 4.4.0 with no replacementIf 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:
-
getVirtualHost
-
setVirtualHost
-
getAddressShuffleMode
-
setAddressShuffleMode
-
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(@Nullable CachingConnectionFactory.ConfirmType publisherConfirmType) -
getPublisherConfirmType
-
setConnectionTimeout
-
getChannelRpcTimeout
-
setChannelRpcTimeout
-
getMaxInboundMessageBodySize
-
setMaxInboundMessageBodySize
-
getCache
-
getListener
-
getTemplate
-
getStream
-