@ConfigurationProperties(prefix="spring.rabbitmq") public class RabbitProperties extends Object
Modifier and Type | Class and Description |
---|---|
static class |
RabbitProperties.AmqpContainer |
static class |
RabbitProperties.Cache |
static class |
RabbitProperties.Listener |
static class |
RabbitProperties.ListenerRetry |
static class |
RabbitProperties.Retry |
static class |
RabbitProperties.Ssl |
static class |
RabbitProperties.Template |
Constructor and Description |
---|
RabbitProperties() |
Modifier and Type | Method and Description |
---|---|
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. |
String |
determineHost()
Returns the host from the first address, or the configured host if no addresses
have been set.
|
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.
|
String |
determineUsername()
If addresses have been set and the first address has a username it is returned.
|
String |
determineVirtualHost()
If addresses have been set and the first address has a virtual host it is returned.
|
String |
getAddresses() |
RabbitProperties.Cache |
getCache() |
Integer |
getConnectionTimeout() |
String |
getHost() |
RabbitProperties.Listener |
getListener() |
String |
getPassword() |
int |
getPort() |
Integer |
getRequestedHeartbeat() |
RabbitProperties.Ssl |
getSsl() |
RabbitProperties.Template |
getTemplate() |
String |
getUsername() |
String |
getVirtualHost() |
boolean |
isPublisherConfirms() |
boolean |
isPublisherReturns() |
void |
setAddresses(String addresses) |
void |
setConnectionTimeout(Integer connectionTimeout) |
void |
setHost(String host) |
void |
setPassword(String password) |
void |
setPort(int port) |
void |
setPublisherConfirms(boolean publisherConfirms) |
void |
setPublisherReturns(boolean publisherReturns) |
void |
setRequestedHeartbeat(Integer requestedHeartbeat) |
void |
setUsername(String username) |
void |
setVirtualHost(String virtualHost) |
public String getHost()
public String determineHost()
setAddresses(String)
,
getHost()
public void setHost(String host)
public int getPort()
public int determinePort()
setAddresses(String)
,
getPort()
public void setPort(int port)
public String getAddresses()
public String determineAddresses()
host:port
)
created from the configured host and port if no addresses have been set.public void setAddresses(String addresses)
public String getUsername()
public String determineUsername()
getUsername()
.setAddresses(String)
,
getUsername()
public void setUsername(String username)
public String getPassword()
public String determinePassword()
getPassword()
.null
setAddresses(String)
,
getPassword()
public void setPassword(String password)
public RabbitProperties.Ssl getSsl()
public String getVirtualHost()
public String determineVirtualHost()
getVirtualHost()
.null
setAddresses(String)
,
getVirtualHost()
public void setVirtualHost(String virtualHost)
public Integer getRequestedHeartbeat()
public void setRequestedHeartbeat(Integer requestedHeartbeat)
public boolean isPublisherConfirms()
public void setPublisherConfirms(boolean publisherConfirms)
public boolean isPublisherReturns()
public void setPublisherReturns(boolean publisherReturns)
public Integer getConnectionTimeout()
public void setConnectionTimeout(Integer connectionTimeout)
public RabbitProperties.Cache getCache()
public RabbitProperties.Listener getListener()
public RabbitProperties.Template getTemplate()
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.