@ConfigurationProperties(prefix="spring.activemq") public class ActiveMQProperties extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_EMBEDDED_BROKER_URL |
static String |
DEFAULT_NETWORK_BROKER_URL |
Constructor and Description |
---|
ActiveMQProperties() |
Modifier and Type | Method and Description |
---|---|
ConnectionFactory |
createConnectionFactory()
Return a new
ConnectionFactory from these properties. |
static String |
determineBrokerUrl(Environment environment)
Determine the broker url to use for the specified
Environment . |
String |
getBrokerUrl() |
String |
getPassword() |
String |
getUser() |
boolean |
isInMemory()
Specify if the default broker url should be in memory.
|
boolean |
isPooled() |
void |
setBrokerUrl(String brokerUrl) |
void |
setInMemory(boolean inMemory) |
void |
setPassword(String password) |
void |
setPooled(boolean pooled) |
void |
setUser(String user) |
public static final String DEFAULT_EMBEDDED_BROKER_URL
public static final String DEFAULT_NETWORK_BROKER_URL
public String getBrokerUrl()
public void setBrokerUrl(String brokerUrl)
public boolean isInMemory()
public void setInMemory(boolean inMemory)
public boolean isPooled()
public void setPooled(boolean pooled)
public String getUser()
public void setUser(String user)
public String getPassword()
public void setPassword(String password)
public ConnectionFactory createConnectionFactory()
ConnectionFactory
from these properties.public static String determineBrokerUrl(Environment environment)
Environment
. If no broker
url is specified through configuration, a default broker is provided, that is
"vm://localhost?broker.persistent=false" if the inMemory
flag is null
or true
, "tcp://localhost:61616" otherwise.environment
- the environment to extract configuration fromCopyright © 2015 Pivotal Software, Inc.. All rights reserved.