|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.activemq.ra.ActiveMQConnectionSupport
public class ActiveMQConnectionSupport
Abstract base class providing support for creating physical connections to an ActiveMQ instance.
| Field Summary | |
|---|---|
protected org.slf4j.Logger |
log
|
| Constructor Summary | |
|---|---|
ActiveMQConnectionSupport()
|
|
| Method Summary | |
|---|---|
protected org.apache.activemq.ActiveMQConnectionFactory |
createConnectionFactory(ActiveMQConnectionRequestInfo connectionRequestInfo)
Creates a factory for obtaining physical connections to an Active MQ broker. |
protected String |
defaultValue(String value,
String defaultValue)
|
protected String |
emptyToNull(String value)
|
String |
getClientid()
|
Integer |
getDurableTopicPrefetch()
|
ActiveMQConnectionRequestInfo |
getInfo()
Gets the connection request information. |
Long |
getInitialRedeliveryDelay()
|
Integer |
getInputStreamPrefetch()
|
Integer |
getMaximumRedeliveries()
|
Long |
getMaximumRedeliveryDelay()
|
Integer |
getOptimizeDurableTopicPrefetch()
|
String |
getPassword()
|
Integer |
getQueueBrowserPrefetch()
|
Integer |
getQueuePrefetch()
|
Double |
getRedeliveryBackOffMultiplier()
|
Boolean |
getRedeliveryUseExponentialBackOff()
|
String |
getServerUrl()
|
Integer |
getTopicPrefetch()
|
Boolean |
getUseInboundSession()
|
String |
getUserName()
|
boolean |
isUseInboundSessionEnabled()
|
org.apache.activemq.ActiveMQConnection |
makeConnection(ActiveMQConnectionRequestInfo connectionRequestInfo)
Creates a new physical connection to an Active MQ broker identified by given connection request information. |
org.apache.activemq.ActiveMQConnection |
makeConnection(ActiveMQConnectionRequestInfo connectionRequestInfo,
org.apache.activemq.ActiveMQConnectionFactory connectionFactory)
Creates a new physical connection to an Active MQ broker using a given connection factory and credentials supplied in connection request information. |
protected boolean |
notEqual(Object o1,
Object o2)
|
void |
setAllPrefetchValues(Integer i)
|
void |
setClientid(String clientid)
|
void |
setDurableTopicPrefetch(Integer durableTopicPrefetch)
|
protected void |
setInfo(ActiveMQConnectionRequestInfo connectionRequestInfo)
Sets the connection request information as a whole. |
void |
setInitialRedeliveryDelay(Long value)
|
void |
setInputStreamPrefetch(Integer inputStreamPrefetch)
|
void |
setMaximumRedeliveries(Integer value)
|
void |
setMaximumRedeliveryDelay(Long value)
|
void |
setOptimizeDurableTopicPrefetch(Integer optimizeDurableTopicPrefetch)
|
void |
setPassword(String password)
|
void |
setQueueBrowserPrefetch(Integer queueBrowserPrefetch)
|
void |
setQueuePrefetch(Integer queuePrefetch)
|
void |
setRedeliveryBackOffMultiplier(Double value)
|
void |
setRedeliveryUseExponentialBackOff(Boolean value)
|
void |
setServerUrl(String url)
|
void |
setTopicPrefetch(Integer topicPrefetch)
|
void |
setUseInboundSession(Boolean useInboundSession)
|
void |
setUserName(String userid)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.slf4j.Logger log
| Constructor Detail |
|---|
public ActiveMQConnectionSupport()
| Method Detail |
|---|
protected org.apache.activemq.ActiveMQConnectionFactory createConnectionFactory(ActiveMQConnectionRequestInfo connectionRequestInfo)
connectionRequestInfo - the configuration request information
IllegalArgumentException - if the server URL given in the
configuration information is not a valid URL
public org.apache.activemq.ActiveMQConnection makeConnection(ActiveMQConnectionRequestInfo connectionRequestInfo)
throws javax.jms.JMSException
connectionRequestInfo - the connection request information identifying the broker and any
required connection parameters, e.g. username/password
javax.jms.JMSException - if the connection could not be established
public org.apache.activemq.ActiveMQConnection makeConnection(ActiveMQConnectionRequestInfo connectionRequestInfo,
org.apache.activemq.ActiveMQConnectionFactory connectionFactory)
throws javax.jms.JMSException
connectionRequestInfo - the connection request information containing the credentials to use
for the connection request
javax.jms.JMSException - if the connection could not be establishedpublic ActiveMQConnectionRequestInfo getInfo()
protected void setInfo(ActiveMQConnectionRequestInfo connectionRequestInfo)
connectionRequestInfo - the connection request information
protected boolean notEqual(Object o1,
Object o2)
protected String emptyToNull(String value)
protected String defaultValue(String value,
String defaultValue)
public String getClientid()
public void setClientid(String clientid)
clientid - public String getPassword()
public void setPassword(String password)
password - public String getServerUrl()
public void setServerUrl(String url)
url - public String getUserName()
public void setUserName(String userid)
userid - public Integer getDurableTopicPrefetch()
public void setOptimizeDurableTopicPrefetch(Integer optimizeDurableTopicPrefetch)
optimizeDurableTopicPrefetch - public Integer getOptimizeDurableTopicPrefetch()
public void setDurableTopicPrefetch(Integer durableTopicPrefetch)
durableTopicPrefetch - public Long getInitialRedeliveryDelay()
public void setInitialRedeliveryDelay(Long value)
value - public Long getMaximumRedeliveryDelay()
public void setMaximumRedeliveryDelay(Long value)
value - public Integer getInputStreamPrefetch()
public void setInputStreamPrefetch(Integer inputStreamPrefetch)
inputStreamPrefetch - public Integer getMaximumRedeliveries()
public void setMaximumRedeliveries(Integer value)
value - public Integer getQueueBrowserPrefetch()
public void setQueueBrowserPrefetch(Integer queueBrowserPrefetch)
queueBrowserPrefetch - public Integer getQueuePrefetch()
public void setQueuePrefetch(Integer queuePrefetch)
queuePrefetch - public Double getRedeliveryBackOffMultiplier()
public void setRedeliveryBackOffMultiplier(Double value)
value - public Boolean getRedeliveryUseExponentialBackOff()
public void setRedeliveryUseExponentialBackOff(Boolean value)
value - public Integer getTopicPrefetch()
public void setTopicPrefetch(Integer topicPrefetch)
topicPrefetch - public void setAllPrefetchValues(Integer i)
i - public boolean isUseInboundSessionEnabled()
public Boolean getUseInboundSession()
public void setUseInboundSession(Boolean useInboundSession)
useInboundSession -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||