Class ClusterConnectionConfiguration
java.lang.Object
org.apache.activemq.artemis.core.config.ClusterConnectionConfiguration
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
long
long
long
int
long
org.apache.activemq.artemis.utils.uri.URISupport.CompositeData
int
long
getDiscoveryGroupConfiguration
(Configuration configuration) This method will return the proper discovery configuration from the main configurationint
int
long
org.apache.activemq.artemis.core.server.cluster.impl.MessageLoadBalancingType
int
getName()
int
int
long
double
getTransportConfiguration
(Configuration configuration) getTransportConfigurations
(Configuration configuration) This method will match the configuration and return the proper TransportConfiguration for the Configurationint
hashCode()
boolean
boolean
setAddress
(String address) setAllowDirectConnectionsOnly
(boolean allowDirectConnectionsOnly) setCallFailoverTimeout
(long callFailoverTimeout) setCallTimeout
(long callTimeout) setClientFailureCheckPeriod
(long clientFailureCheckPeriod) setClientId
(String clientId) setClusterNotificationAttempts
(int clusterNotificationAttempts) setClusterNotificationInterval
(long clusterNotificationInterval) setCompositeMembers
(org.apache.activemq.artemis.utils.uri.URISupport.CompositeData members) setConfirmationWindowSize
(int confirmationWindowSize) setConnectionTTL
(long connectionTTL) setConnectorName
(String connectorName) setDiscoveryGroupName
(String discoveryGroupName) setDuplicateDetection
(boolean duplicateDetection) setInitialConnectAttempts
(int initialConnectAttempts) setMaxHops
(int maxHops) setMaxRetryInterval
(long maxRetryInterval) setMessageLoadBalancingType
(org.apache.activemq.artemis.core.server.cluster.impl.MessageLoadBalancingType messageLoadBalancingType) setMinLargeMessageSize
(int minLargeMessageSize) setProducerWindowSize
(int producerWindowSize) setReconnectAttempts
(int reconnectAttempts) setRetryInterval
(long retryInterval) setRetryIntervalMultiplier
(double retryIntervalMultiplier) setStaticConnectors
(List<String> staticConnectors) toString()
boolean
-
Constructor Details
-
ClusterConnectionConfiguration
public ClusterConnectionConfiguration() -
ClusterConnectionConfiguration
- Throws:
Exception
-
-
Method Details
-
getName
-
setName
-
getAddress
-
setAddress
-
getCompositeMembers
public org.apache.activemq.artemis.utils.uri.URISupport.CompositeData getCompositeMembers() -
setCompositeMembers
public ClusterConnectionConfiguration setCompositeMembers(org.apache.activemq.artemis.utils.uri.URISupport.CompositeData members) -
getClientFailureCheckPeriod
public long getClientFailureCheckPeriod()- Returns:
- the clientFailureCheckPeriod
-
setClientFailureCheckPeriod
- Parameters:
clientFailureCheckPeriod
- the clientFailureCheckPeriod to set
-
getConnectionTTL
public long getConnectionTTL()- Returns:
- the connectionTTL
-
setConnectionTTL
- Parameters:
connectionTTL
- the connectionTTL to set
-
getRetryIntervalMultiplier
public double getRetryIntervalMultiplier()- Returns:
- the retryIntervalMultiplier
-
setRetryIntervalMultiplier
- Parameters:
retryIntervalMultiplier
- the retryIntervalMultiplier to set
-
getMaxRetryInterval
public long getMaxRetryInterval()- Returns:
- the maxRetryInterval
-
setMaxRetryInterval
- Parameters:
maxRetryInterval
- the maxRetryInterval to set
-
getInitialConnectAttempts
public int getInitialConnectAttempts()- Returns:
- the initialConnectAttempts
-
setInitialConnectAttempts
- Parameters:
initialConnectAttempts
- the reconnectAttempts to set
-
getReconnectAttempts
public int getReconnectAttempts()- Returns:
- the reconnectAttempts
-
setReconnectAttempts
- Parameters:
reconnectAttempts
- the reconnectAttempts to set
-
getCallTimeout
public long getCallTimeout() -
setCallTimeout
- Parameters:
callTimeout
- the callTimeout to set
-
getCallFailoverTimeout
public long getCallFailoverTimeout() -
setCallFailoverTimeout
- Parameters:
callFailoverTimeout
- the callTimeout to set
-
getConnectorName
-
setConnectorName
-
isDuplicateDetection
public boolean isDuplicateDetection() -
setDuplicateDetection
- Parameters:
duplicateDetection
- the duplicateDetection to set
-
getMessageLoadBalancingType
public org.apache.activemq.artemis.core.server.cluster.impl.MessageLoadBalancingType getMessageLoadBalancingType() -
setMessageLoadBalancingType
public ClusterConnectionConfiguration setMessageLoadBalancingType(org.apache.activemq.artemis.core.server.cluster.impl.MessageLoadBalancingType messageLoadBalancingType) - Parameters:
messageLoadBalancingType
-- Returns:
-
getMaxHops
public int getMaxHops() -
setMaxHops
-
getConfirmationWindowSize
public int getConfirmationWindowSize() -
setConfirmationWindowSize
-
getProducerWindowSize
public int getProducerWindowSize() -
setProducerWindowSize
-
getStaticConnectors
-
setStaticConnectors
-
getDiscoveryGroupName
-
setDiscoveryGroupName
-
getRetryInterval
public long getRetryInterval() -
setRetryInterval
- Parameters:
retryInterval
- the retryInterval to set
-
isAllowDirectConnectionsOnly
public boolean isAllowDirectConnectionsOnly() -
setAllowDirectConnectionsOnly
public ClusterConnectionConfiguration setAllowDirectConnectionsOnly(boolean allowDirectConnectionsOnly) -
getMinLargeMessageSize
public int getMinLargeMessageSize()- Returns:
- the minLargeMessageSize
-
setMinLargeMessageSize
- Parameters:
minLargeMessageSize
- the minLargeMessageSize to set
-
getClusterNotificationInterval
public long getClusterNotificationInterval() -
setClusterNotificationInterval
public ClusterConnectionConfiguration setClusterNotificationInterval(long clusterNotificationInterval) -
getClusterNotificationAttempts
public int getClusterNotificationAttempts() -
setClusterNotificationAttempts
public ClusterConnectionConfiguration setClusterNotificationAttempts(int clusterNotificationAttempts) -
getClientId
-
setClientId
-
getTransportConfigurations
public TransportConfiguration[] getTransportConfigurations(Configuration configuration) throws Exception This method will match the configuration and return the proper TransportConfiguration for the Configuration- Throws:
Exception
-
getDiscoveryGroupConfiguration
This method will return the proper discovery configuration from the main configuration -
getTransportConfiguration
-
validateConfiguration
public boolean validateConfiguration() -
hashCode
public int hashCode() -
equals
-
toString
-