public class AMQBrokerDetails extends Object implements BrokerDetails, Serializable
CLIENT_ID, DEFAULT_CONNECT_TIMEOUT, DEFAULT_PORT, DEFAULT_TRANSPORT, OPTIONS_CONNECT_DELAY, OPTIONS_CONNECT_TIMEOUT, OPTIONS_HEARTBEAT, OPTIONS_IDLE_TIMEOUT, OPTIONS_KEY_STORE, OPTIONS_KEY_STORE_PASSWORD, OPTIONS_RETRY, OPTIONS_SASL_ENCRYPTION, OPTIONS_SASL_MECHS, OPTIONS_SASL_PROTOCOL_NAME, OPTIONS_SASL_SERVER_NAME, OPTIONS_SSL, OPTIONS_SSL_CERT_ALIAS, OPTIONS_SSL_VERIFY_HOSTNAME, OPTIONS_TCP_NO_DELAY, OPTIONS_TRUST_STORE, OPTIONS_TRUST_STORE_PASSWORD, PASSWORD, PROTOCOL_TCP, PROTOCOL_TLS, TCP, URL_FORMAT_EXAMPLE, USE_SSL_DEFAULT, USERNAME, VIRTUAL_HOST| Constructor and Description |
|---|
AMQBrokerDetails() |
AMQBrokerDetails(String url) |
AMQBrokerDetails(String host,
int port) |
| Modifier and Type | Method and Description |
|---|---|
ConnectionSettings |
buildConnectionSettings() |
static String |
checkTransport(String broker) |
boolean |
equals(Object o) |
boolean |
getBooleanProperty(String propName) |
boolean |
getBooleanProperty(String propName,
boolean defaultValue) |
String |
getHost() |
int |
getPort() |
Map<String,String> |
getProperties()
Ex: keystore path
|
String |
getProperty(String key) |
String |
getTransport() |
int |
hashCode() |
void |
setHost(String _host) |
void |
setPort(int _port) |
void |
setProperties(Map<String,String> props)
Sets the properties associated with this connection
|
void |
setProperty(String key,
String value) |
void |
setTransport(String _transport) |
String |
toString() |
public AMQBrokerDetails()
public AMQBrokerDetails(String url) throws URLSyntaxException
URLSyntaxExceptionpublic AMQBrokerDetails(String host, int port)
public String getHost()
getHost in interface BrokerDetailspublic void setHost(String _host)
setHost in interface BrokerDetailspublic int getPort()
getPort in interface BrokerDetailspublic void setPort(int _port)
setPort in interface BrokerDetailspublic String getTransport()
getTransport in interface BrokerDetailspublic void setTransport(String _transport)
setTransport in interface BrokerDetailspublic String getProperty(String key)
getProperty in interface BrokerDetailspublic void setProperty(String key, String value)
setProperty in interface BrokerDetailspublic boolean getBooleanProperty(String propName)
getBooleanProperty in interface BrokerDetailspublic boolean getBooleanProperty(String propName, boolean defaultValue)
public Map<String,String> getProperties()
BrokerDetailsgetProperties in interface BrokerDetailspublic void setProperties(Map<String,String> props)
BrokerDetailssetProperties in interface BrokerDetailsprops - the new p[roperties.public ConnectionSettings buildConnectionSettings()
buildConnectionSettings in interface BrokerDetailsCopyright © 2006–2014 The Apache Software Foundation. All rights reserved.