Package org.apache.activemq.spring
Class ActiveMQConnectionFactoryFactoryBean
- java.lang.Object
-
- org.apache.activemq.spring.ActiveMQConnectionFactoryFactoryBean
-
- All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean
public class ActiveMQConnectionFactoryFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean
A helper class for creating a failover configuredActiveMQConnectionFactorywhich supports one or more TCP based hostname/ports which can all be configured in a consistent way without too much URL hacking.
-
-
Constructor Summary
Constructors Constructor Description ActiveMQConnectionFactoryFactoryBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringasQueryString(List<String> parameters)Turns a list of query string key=value strings into a query URL string of the form "?a=x&b=y"protected StringcreateTcpHostAndPortUrl(String tcpHostAndPort)Allows us to add any TCP specific URI configurationsStringgetBrokerURL()StringgetFailoverProperties()LonggetMaxInactivityDuration()LonggetMaxReconnectDelay()ObjectgetObject()ClassgetObjectType()List<String>getTcpHostAndPorts()StringgetTcpProperties()booleanisSingleton()protected booleannotEmpty(String text)voidsetFailoverProperties(String failoverProperties)voidsetMaxInactivityDuration(Long maxInactivityDuration)voidsetMaxReconnectDelay(Long maxReconnectDelay)voidsetTcpHostAndPort(String tcpHostAndPort)voidsetTcpHostAndPorts(List<String> tcpHostAndPorts)voidsetTcpProperties(String tcpProperties)
-
-
-
Method Detail
-
getObject
public Object getObject() throws Exception
- Specified by:
getObjectin interfaceorg.springframework.beans.factory.FactoryBean- Throws:
Exception
-
getBrokerURL
public String getBrokerURL()
-
getObjectType
public Class getObjectType()
- Specified by:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean
-
isSingleton
public boolean isSingleton()
- Specified by:
isSingletonin interfaceorg.springframework.beans.factory.FactoryBean
-
setTcpHostAndPort
public void setTcpHostAndPort(String tcpHostAndPort)
-
getMaxInactivityDuration
public Long getMaxInactivityDuration()
-
setMaxInactivityDuration
public void setMaxInactivityDuration(Long maxInactivityDuration)
-
getTcpProperties
public String getTcpProperties()
-
setTcpProperties
public void setTcpProperties(String tcpProperties)
-
getMaxReconnectDelay
public Long getMaxReconnectDelay()
-
setMaxReconnectDelay
public void setMaxReconnectDelay(Long maxReconnectDelay)
-
getFailoverProperties
public String getFailoverProperties()
-
setFailoverProperties
public void setFailoverProperties(String failoverProperties)
-
asQueryString
protected String asQueryString(List<String> parameters)
Turns a list of query string key=value strings into a query URL string of the form "?a=x&b=y"
-
createTcpHostAndPortUrl
protected String createTcpHostAndPortUrl(String tcpHostAndPort)
Allows us to add any TCP specific URI configurations
-
notEmpty
protected boolean notEmpty(String text)
-
-