Class AmqpRabbitProperties
java.lang.Object
org.springframework.boot.amqp.rabbitmq.autoconfigure.AmqpRabbitProperties
Configuration properties for Rabbit AMQP.
- Since:
- 4.2.0
- Author:
- EddĂș MelĂ©ndez
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classSSL configuration.static class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the configured address (host:port) created from the configured host and port.@Nullable StringIf address has been set and has a password it is returned.intReturns the port from the address, or the configured port if no address have been set.If address has been set and has a username it is returned.@Nullable StringIf address has been set and has a virtual host it is returned.@Nullable StringgetHost()@Nullable IntegergetPort()getSsl()@Nullable StringvoidsetAddress(String address) voidvoidsetPassword(String password) voidvoidsetUsername(String username) voidsetVirtualHost(@Nullable String virtualHost)
-
Constructor Details
-
AmqpRabbitProperties
public AmqpRabbitProperties()
-
-
Method Details
-
getHost
-
setHost
-
getPort
-
determinePort
public int determinePort()Returns the port from the address, or the configured port if no address have been set.- Returns:
- the port
- See Also:
-
setPort
-
getAddress
-
determineAddress
Returns the configured address (host:port) created from the configured host and port.- Returns:
- the address
-
setAddress
-
getUsername
-
determineUsername
If address has been set and has a username it is returned. Otherwise returns the result of callinggetUsername().- Returns:
- the username
- See Also:
-
setUsername
-
getPassword
-
determinePassword
If address has been set and has a password it is returned. Otherwise returns the result of callinggetPassword().- Returns:
- the password or
null - See Also:
-
setPassword
-
getVirtualHost
-
determineVirtualHost
If address has been set and has a virtual host it is returned. Otherwise returns the result of callinggetVirtualHost().- Returns:
- the virtual host or
null - See Also:
-
setVirtualHost
-
getSsl
-
getListener
-
getTemplate
-