Class ConnectionFactoryConfigurationImpl
- java.lang.Object
-
- org.apache.activemq.artemis.jms.server.config.impl.ConnectionFactoryConfigurationImpl
-
- All Implemented Interfaces:
org.apache.activemq.artemis.core.journal.EncodingSupport
,ConnectionFactoryConfiguration
public class ConnectionFactoryConfigurationImpl extends java.lang.Object implements ConnectionFactoryConfiguration
This class contains the configuration properties of a connection factory.It is also persisted on the journal at the time of management is used to created a connection factory and set to store.
Every property on this class has to be also set through encoders through EncodingSupport implementation at this class.
-
-
Constructor Summary
Constructors Constructor Description ConnectionFactoryConfigurationImpl()
-
Method Summary
-
-
-
Method Detail
-
getBindings
public java.lang.String[] getBindings()
- Specified by:
getBindings
in interfaceConnectionFactoryConfiguration
-
setBindings
public ConnectionFactoryConfiguration setBindings(java.lang.String... bindings)
- Specified by:
setBindings
in interfaceConnectionFactoryConfiguration
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceConnectionFactoryConfiguration
-
setName
public ConnectionFactoryConfiguration setName(java.lang.String name)
- Specified by:
setName
in interfaceConnectionFactoryConfiguration
-
isPersisted
public boolean isPersisted()
- Specified by:
isPersisted
in interfaceConnectionFactoryConfiguration
-
getDiscoveryGroupName
public java.lang.String getDiscoveryGroupName()
- Specified by:
getDiscoveryGroupName
in interfaceConnectionFactoryConfiguration
- Returns:
- the discoveryGroupName
-
setDiscoveryGroupName
public ConnectionFactoryConfiguration setDiscoveryGroupName(java.lang.String discoveryGroupName)
- Specified by:
setDiscoveryGroupName
in interfaceConnectionFactoryConfiguration
- Parameters:
discoveryGroupName
- the discoveryGroupName to set
-
getConnectorNames
public java.util.List<java.lang.String> getConnectorNames()
- Specified by:
getConnectorNames
in interfaceConnectionFactoryConfiguration
-
setConnectorNames
public ConnectionFactoryConfiguration setConnectorNames(java.util.List<java.lang.String> connectorNames)
- Specified by:
setConnectorNames
in interfaceConnectionFactoryConfiguration
-
setConnectorNames
public ConnectionFactoryConfiguration setConnectorNames(java.lang.String... names)
- Specified by:
setConnectorNames
in interfaceConnectionFactoryConfiguration
-
isHA
public boolean isHA()
- Specified by:
isHA
in interfaceConnectionFactoryConfiguration
-
setHA
public ConnectionFactoryConfiguration setHA(boolean ha)
- Specified by:
setHA
in interfaceConnectionFactoryConfiguration
-
getClientID
public java.lang.String getClientID()
- Specified by:
getClientID
in interfaceConnectionFactoryConfiguration
-
setClientID
public ConnectionFactoryConfiguration setClientID(java.lang.String clientID)
- Specified by:
setClientID
in interfaceConnectionFactoryConfiguration
-
getClientFailureCheckPeriod
public long getClientFailureCheckPeriod()
- Specified by:
getClientFailureCheckPeriod
in interfaceConnectionFactoryConfiguration
-
setClientFailureCheckPeriod
public ConnectionFactoryConfiguration setClientFailureCheckPeriod(long clientFailureCheckPeriod)
- Specified by:
setClientFailureCheckPeriod
in interfaceConnectionFactoryConfiguration
-
getConnectionTTL
public long getConnectionTTL()
- Specified by:
getConnectionTTL
in interfaceConnectionFactoryConfiguration
-
setConnectionTTL
public ConnectionFactoryConfiguration setConnectionTTL(long connectionTTL)
- Specified by:
setConnectionTTL
in interfaceConnectionFactoryConfiguration
-
getCallTimeout
public long getCallTimeout()
- Specified by:
getCallTimeout
in interfaceConnectionFactoryConfiguration
-
setCallTimeout
public ConnectionFactoryConfiguration setCallTimeout(long callTimeout)
- Specified by:
setCallTimeout
in interfaceConnectionFactoryConfiguration
-
getCallFailoverTimeout
public long getCallFailoverTimeout()
- Specified by:
getCallFailoverTimeout
in interfaceConnectionFactoryConfiguration
-
setCallFailoverTimeout
public ConnectionFactoryConfiguration setCallFailoverTimeout(long callFailoverTimeout)
- Specified by:
setCallFailoverTimeout
in interfaceConnectionFactoryConfiguration
-
isCacheLargeMessagesClient
public boolean isCacheLargeMessagesClient()
- Specified by:
isCacheLargeMessagesClient
in interfaceConnectionFactoryConfiguration
-
setCacheLargeMessagesClient
public ConnectionFactoryConfiguration setCacheLargeMessagesClient(boolean cacheLargeMessagesClient)
- Specified by:
setCacheLargeMessagesClient
in interfaceConnectionFactoryConfiguration
-
getMinLargeMessageSize
public int getMinLargeMessageSize()
- Specified by:
getMinLargeMessageSize
in interfaceConnectionFactoryConfiguration
-
setMinLargeMessageSize
public ConnectionFactoryConfiguration setMinLargeMessageSize(int minLargeMessageSize)
- Specified by:
setMinLargeMessageSize
in interfaceConnectionFactoryConfiguration
-
getConsumerWindowSize
public int getConsumerWindowSize()
- Specified by:
getConsumerWindowSize
in interfaceConnectionFactoryConfiguration
-
setConsumerWindowSize
public ConnectionFactoryConfiguration setConsumerWindowSize(int consumerWindowSize)
- Specified by:
setConsumerWindowSize
in interfaceConnectionFactoryConfiguration
-
getConsumerMaxRate
public int getConsumerMaxRate()
- Specified by:
getConsumerMaxRate
in interfaceConnectionFactoryConfiguration
-
setConsumerMaxRate
public ConnectionFactoryConfiguration setConsumerMaxRate(int consumerMaxRate)
- Specified by:
setConsumerMaxRate
in interfaceConnectionFactoryConfiguration
-
getConfirmationWindowSize
public int getConfirmationWindowSize()
- Specified by:
getConfirmationWindowSize
in interfaceConnectionFactoryConfiguration
-
setConfirmationWindowSize
public ConnectionFactoryConfiguration setConfirmationWindowSize(int confirmationWindowSize)
- Specified by:
setConfirmationWindowSize
in interfaceConnectionFactoryConfiguration
-
getProducerMaxRate
public int getProducerMaxRate()
- Specified by:
getProducerMaxRate
in interfaceConnectionFactoryConfiguration
-
setProducerMaxRate
public ConnectionFactoryConfiguration setProducerMaxRate(int producerMaxRate)
- Specified by:
setProducerMaxRate
in interfaceConnectionFactoryConfiguration
-
getProducerWindowSize
public int getProducerWindowSize()
- Specified by:
getProducerWindowSize
in interfaceConnectionFactoryConfiguration
-
setProducerWindowSize
public ConnectionFactoryConfiguration setProducerWindowSize(int producerWindowSize)
- Specified by:
setProducerWindowSize
in interfaceConnectionFactoryConfiguration
-
isBlockOnAcknowledge
public boolean isBlockOnAcknowledge()
- Specified by:
isBlockOnAcknowledge
in interfaceConnectionFactoryConfiguration
-
setBlockOnAcknowledge
public ConnectionFactoryConfiguration setBlockOnAcknowledge(boolean blockOnAcknowledge)
- Specified by:
setBlockOnAcknowledge
in interfaceConnectionFactoryConfiguration
-
isBlockOnDurableSend
public boolean isBlockOnDurableSend()
- Specified by:
isBlockOnDurableSend
in interfaceConnectionFactoryConfiguration
-
setBlockOnDurableSend
public ConnectionFactoryConfiguration setBlockOnDurableSend(boolean blockOnDurableSend)
- Specified by:
setBlockOnDurableSend
in interfaceConnectionFactoryConfiguration
-
isBlockOnNonDurableSend
public boolean isBlockOnNonDurableSend()
- Specified by:
isBlockOnNonDurableSend
in interfaceConnectionFactoryConfiguration
-
setBlockOnNonDurableSend
public ConnectionFactoryConfiguration setBlockOnNonDurableSend(boolean blockOnNonDurableSend)
- Specified by:
setBlockOnNonDurableSend
in interfaceConnectionFactoryConfiguration
-
isAutoGroup
public boolean isAutoGroup()
- Specified by:
isAutoGroup
in interfaceConnectionFactoryConfiguration
-
setAutoGroup
public ConnectionFactoryConfiguration setAutoGroup(boolean autoGroup)
- Specified by:
setAutoGroup
in interfaceConnectionFactoryConfiguration
-
isPreAcknowledge
public boolean isPreAcknowledge()
- Specified by:
isPreAcknowledge
in interfaceConnectionFactoryConfiguration
-
setPreAcknowledge
public ConnectionFactoryConfiguration setPreAcknowledge(boolean preAcknowledge)
- Specified by:
setPreAcknowledge
in interfaceConnectionFactoryConfiguration
-
getLoadBalancingPolicyClassName
public java.lang.String getLoadBalancingPolicyClassName()
- Specified by:
getLoadBalancingPolicyClassName
in interfaceConnectionFactoryConfiguration
-
setLoadBalancingPolicyClassName
public ConnectionFactoryConfiguration setLoadBalancingPolicyClassName(java.lang.String loadBalancingPolicyClassName)
- Specified by:
setLoadBalancingPolicyClassName
in interfaceConnectionFactoryConfiguration
-
getTransactionBatchSize
public int getTransactionBatchSize()
- Specified by:
getTransactionBatchSize
in interfaceConnectionFactoryConfiguration
-
setTransactionBatchSize
public ConnectionFactoryConfiguration setTransactionBatchSize(int transactionBatchSize)
- Specified by:
setTransactionBatchSize
in interfaceConnectionFactoryConfiguration
-
getDupsOKBatchSize
public int getDupsOKBatchSize()
- Specified by:
getDupsOKBatchSize
in interfaceConnectionFactoryConfiguration
-
setDupsOKBatchSize
public ConnectionFactoryConfiguration setDupsOKBatchSize(int dupsOKBatchSize)
- Specified by:
setDupsOKBatchSize
in interfaceConnectionFactoryConfiguration
-
getInitialWaitTimeout
public long getInitialWaitTimeout()
-
setInitialWaitTimeout
public ConnectionFactoryConfiguration setInitialWaitTimeout(long initialWaitTimeout)
-
isUseGlobalPools
public boolean isUseGlobalPools()
- Specified by:
isUseGlobalPools
in interfaceConnectionFactoryConfiguration
-
setUseGlobalPools
public ConnectionFactoryConfiguration setUseGlobalPools(boolean useGlobalPools)
- Specified by:
setUseGlobalPools
in interfaceConnectionFactoryConfiguration
-
getScheduledThreadPoolMaxSize
public int getScheduledThreadPoolMaxSize()
- Specified by:
getScheduledThreadPoolMaxSize
in interfaceConnectionFactoryConfiguration
-
setScheduledThreadPoolMaxSize
public ConnectionFactoryConfiguration setScheduledThreadPoolMaxSize(int scheduledThreadPoolMaxSize)
- Specified by:
setScheduledThreadPoolMaxSize
in interfaceConnectionFactoryConfiguration
-
getThreadPoolMaxSize
public int getThreadPoolMaxSize()
- Specified by:
getThreadPoolMaxSize
in interfaceConnectionFactoryConfiguration
-
setThreadPoolMaxSize
public ConnectionFactoryConfiguration setThreadPoolMaxSize(int threadPoolMaxSize)
- Specified by:
setThreadPoolMaxSize
in interfaceConnectionFactoryConfiguration
-
getRetryInterval
public long getRetryInterval()
- Specified by:
getRetryInterval
in interfaceConnectionFactoryConfiguration
-
setRetryInterval
public ConnectionFactoryConfiguration setRetryInterval(long retryInterval)
- Specified by:
setRetryInterval
in interfaceConnectionFactoryConfiguration
-
getRetryIntervalMultiplier
public double getRetryIntervalMultiplier()
- Specified by:
getRetryIntervalMultiplier
in interfaceConnectionFactoryConfiguration
-
setRetryIntervalMultiplier
public ConnectionFactoryConfiguration setRetryIntervalMultiplier(double retryIntervalMultiplier)
- Specified by:
setRetryIntervalMultiplier
in interfaceConnectionFactoryConfiguration
-
getMaxRetryInterval
public long getMaxRetryInterval()
- Specified by:
getMaxRetryInterval
in interfaceConnectionFactoryConfiguration
-
setMaxRetryInterval
public ConnectionFactoryConfiguration setMaxRetryInterval(long maxRetryInterval)
- Specified by:
setMaxRetryInterval
in interfaceConnectionFactoryConfiguration
-
getReconnectAttempts
public int getReconnectAttempts()
- Specified by:
getReconnectAttempts
in interfaceConnectionFactoryConfiguration
-
setReconnectAttempts
public ConnectionFactoryConfiguration setReconnectAttempts(int reconnectAttempts)
- Specified by:
setReconnectAttempts
in interfaceConnectionFactoryConfiguration
-
isFailoverOnInitialConnection
@Deprecated public boolean isFailoverOnInitialConnection()
Deprecated.- Specified by:
isFailoverOnInitialConnection
in interfaceConnectionFactoryConfiguration
-
setFailoverOnInitialConnection
@Deprecated public ConnectionFactoryConfiguration setFailoverOnInitialConnection(boolean failover)
Deprecated.- Specified by:
setFailoverOnInitialConnection
in interfaceConnectionFactoryConfiguration
-
getGroupID
public java.lang.String getGroupID()
- Specified by:
getGroupID
in interfaceConnectionFactoryConfiguration
-
setGroupID
public ConnectionFactoryConfiguration setGroupID(java.lang.String groupID)
- Specified by:
setGroupID
in interfaceConnectionFactoryConfiguration
-
isEnable1xPrefixes
public boolean isEnable1xPrefixes()
- Specified by:
isEnable1xPrefixes
in interfaceConnectionFactoryConfiguration
-
setEnable1xPrefixes
public ConnectionFactoryConfiguration setEnable1xPrefixes(boolean enable1xPrefixes)
- Specified by:
setEnable1xPrefixes
in interfaceConnectionFactoryConfiguration
-
decode
public void decode(org.apache.activemq.artemis.api.core.ActiveMQBuffer buffer)
- Specified by:
decode
in interfaceorg.apache.activemq.artemis.core.journal.EncodingSupport
-
encode
public void encode(org.apache.activemq.artemis.api.core.ActiveMQBuffer buffer)
- Specified by:
encode
in interfaceorg.apache.activemq.artemis.core.journal.EncodingSupport
-
getEncodeSize
public int getEncodeSize()
- Specified by:
getEncodeSize
in interfaceorg.apache.activemq.artemis.core.journal.EncodingSupport
-
setFactoryType
public ConnectionFactoryConfiguration setFactoryType(JMSFactoryType factoryType)
- Specified by:
setFactoryType
in interfaceConnectionFactoryConfiguration
-
getFactoryType
public JMSFactoryType getFactoryType()
- Specified by:
getFactoryType
in interfaceConnectionFactoryConfiguration
-
getDeserializationBlackList
public java.lang.String getDeserializationBlackList()
- Specified by:
getDeserializationBlackList
in interfaceConnectionFactoryConfiguration
-
setDeserializationBlackList
public void setDeserializationBlackList(java.lang.String blackList)
- Specified by:
setDeserializationBlackList
in interfaceConnectionFactoryConfiguration
-
getDeserializationWhiteList
public java.lang.String getDeserializationWhiteList()
- Specified by:
getDeserializationWhiteList
in interfaceConnectionFactoryConfiguration
-
setDeserializationWhiteList
public void setDeserializationWhiteList(java.lang.String whiteList)
- Specified by:
setDeserializationWhiteList
in interfaceConnectionFactoryConfiguration
-
setCompressLargeMessages
public ConnectionFactoryConfiguration setCompressLargeMessages(boolean compressLargeMessage)
- Specified by:
setCompressLargeMessages
in interfaceConnectionFactoryConfiguration
-
isCompressLargeMessages
public boolean isCompressLargeMessages()
- Specified by:
isCompressLargeMessages
in interfaceConnectionFactoryConfiguration
-
setProtocolManagerFactoryStr
public ConnectionFactoryConfiguration setProtocolManagerFactoryStr(java.lang.String protocolManagerFactoryStr)
- Specified by:
setProtocolManagerFactoryStr
in interfaceConnectionFactoryConfiguration
-
getProtocolManagerFactoryStr
public java.lang.String getProtocolManagerFactoryStr()
- Specified by:
getProtocolManagerFactoryStr
in interfaceConnectionFactoryConfiguration
-
getInitialMessagePacketSize
public int getInitialMessagePacketSize()
- Specified by:
getInitialMessagePacketSize
in interfaceConnectionFactoryConfiguration
-
setInitialMessagePacketSize
public ConnectionFactoryConfiguration setInitialMessagePacketSize(int size)
- Specified by:
setInitialMessagePacketSize
in interfaceConnectionFactoryConfiguration
-
setEnableSharedClientID
public ConnectionFactoryConfiguration setEnableSharedClientID(boolean enabled)
- Specified by:
setEnableSharedClientID
in interfaceConnectionFactoryConfiguration
-
isEnableSharedClientID
public boolean isEnableSharedClientID()
- Specified by:
isEnableSharedClientID
in interfaceConnectionFactoryConfiguration
-
setUseTopologyForLoadBalancing
public ConnectionFactoryConfiguration setUseTopologyForLoadBalancing(boolean useTopologyForLoadBalancing)
- Specified by:
setUseTopologyForLoadBalancing
in interfaceConnectionFactoryConfiguration
-
getUseTopologyForLoadBalancing
public boolean getUseTopologyForLoadBalancing()
- Specified by:
getUseTopologyForLoadBalancing
in interfaceConnectionFactoryConfiguration
-
-