@ConfigurationProperties(prefix="spring.rabbitmq")
public class RabbitProperties
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
RabbitProperties.AmqpContainer |
static class |
RabbitProperties.Cache |
static class |
RabbitProperties.ContainerType |
static class |
RabbitProperties.DirectContainer
Configuration properties for
DirectMessageListenerContainer. |
static class |
RabbitProperties.Listener |
static class |
RabbitProperties.ListenerRetry |
static class |
RabbitProperties.Retry |
static class |
RabbitProperties.SimpleContainer
Configuration properties for
SimpleMessageListenerContainer. |
class |
RabbitProperties.Ssl |
static class |
RabbitProperties.Template |
| Constructor and Description |
|---|
RabbitProperties() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
determineAddresses()
Returns the comma-separated addresses or a single address (
host:port)
created from the configured host and port if no addresses have been set. |
java.lang.String |
determineHost()
Returns the host from the first address, or the configured host if no addresses
have been set.
|
java.lang.String |
determinePassword()
If addresses have been set and the first address has a password it is returned.
|
int |
determinePort()
Returns the port from the first address, or the configured port if no addresses
have been set.
|
java.lang.String |
determineUsername()
If addresses have been set and the first address has a username it is returned.
|
java.lang.String |
determineVirtualHost()
If addresses have been set and the first address has a virtual host it is returned.
|
java.lang.String |
getAddresses() |
org.springframework.amqp.rabbit.connection.AbstractConnectionFactory.AddressShuffleMode |
getAddressShuffleMode() |
RabbitProperties.Cache |
getCache() |
java.time.Duration |
getChannelRpcTimeout() |
java.time.Duration |
getConnectionTimeout() |
java.lang.String |
getHost() |
RabbitProperties.Listener |
getListener() |
java.lang.String |
getPassword() |
java.lang.Integer |
getPort() |
org.springframework.amqp.rabbit.connection.CachingConnectionFactory.ConfirmType |
getPublisherConfirmType() |
int |
getRequestedChannelMax() |
java.time.Duration |
getRequestedHeartbeat() |
RabbitProperties.Ssl |
getSsl() |
RabbitProperties.Template |
getTemplate() |
java.lang.String |
getUsername() |
java.lang.String |
getVirtualHost() |
boolean |
isPublisherReturns() |
void |
setAddresses(java.lang.String addresses) |
void |
setAddressShuffleMode(org.springframework.amqp.rabbit.connection.AbstractConnectionFactory.AddressShuffleMode addressShuffleMode) |
void |
setChannelRpcTimeout(java.time.Duration channelRpcTimeout) |
void |
setConnectionTimeout(java.time.Duration connectionTimeout) |
void |
setHost(java.lang.String host) |
void |
setPassword(java.lang.String password) |
void |
setPort(java.lang.Integer port) |
void |
setPublisherConfirmType(org.springframework.amqp.rabbit.connection.CachingConnectionFactory.ConfirmType publisherConfirmType) |
void |
setPublisherReturns(boolean publisherReturns) |
void |
setRequestedChannelMax(int requestedChannelMax) |
void |
setRequestedHeartbeat(java.time.Duration requestedHeartbeat) |
void |
setUsername(java.lang.String username) |
void |
setVirtualHost(java.lang.String virtualHost) |
public java.lang.String getHost()
public java.lang.String determineHost()
setAddresses(String),
getHost()public void setHost(java.lang.String host)
public java.lang.Integer getPort()
public int determinePort()
setAddresses(String),
getPort()public void setPort(java.lang.Integer port)
public java.lang.String getAddresses()
public java.lang.String determineAddresses()
host:port)
created from the configured host and port if no addresses have been set.public void setAddresses(java.lang.String addresses)
public java.lang.String getUsername()
public java.lang.String determineUsername()
getUsername().setAddresses(String),
getUsername()public void setUsername(java.lang.String username)
public java.lang.String getPassword()
public java.lang.String determinePassword()
getPassword().nullsetAddresses(String),
getPassword()public void setPassword(java.lang.String password)
public RabbitProperties.Ssl getSsl()
public java.lang.String getVirtualHost()
public java.lang.String determineVirtualHost()
getVirtualHost().nullsetAddresses(String),
getVirtualHost()public void setVirtualHost(java.lang.String virtualHost)
public org.springframework.amqp.rabbit.connection.AbstractConnectionFactory.AddressShuffleMode getAddressShuffleMode()
public void setAddressShuffleMode(org.springframework.amqp.rabbit.connection.AbstractConnectionFactory.AddressShuffleMode addressShuffleMode)
public java.time.Duration getRequestedHeartbeat()
public void setRequestedHeartbeat(java.time.Duration requestedHeartbeat)
public int getRequestedChannelMax()
public void setRequestedChannelMax(int requestedChannelMax)
public boolean isPublisherReturns()
public void setPublisherReturns(boolean publisherReturns)
public java.time.Duration getConnectionTimeout()
public void setPublisherConfirmType(org.springframework.amqp.rabbit.connection.CachingConnectionFactory.ConfirmType publisherConfirmType)
public org.springframework.amqp.rabbit.connection.CachingConnectionFactory.ConfirmType getPublisherConfirmType()
public void setConnectionTimeout(java.time.Duration connectionTimeout)
public java.time.Duration getChannelRpcTimeout()
public void setChannelRpcTimeout(java.time.Duration channelRpcTimeout)
public RabbitProperties.Cache getCache()
public RabbitProperties.Listener getListener()
public RabbitProperties.Template getTemplate()