Class DiscoveryGroupConfiguration
java.lang.Object
org.apache.activemq.artemis.api.core.DiscoveryGroupConfiguration
- All Implemented Interfaces:
Serializable
This file represents how we are using Discovery.
The discovery configuration could either use plain UDP, or JGroups.
If using UDP, all the UDP properties will be filled and the jgroups properties will be
null
.
If using JGroups, all the UDP properties will be -1 or null
and the jgroups properties
will be filled.
If by any reason, both properties are filled, the JGroups takes precedence. That means, if
jgroupsFile != null
then the Grouping method used will be JGroups.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
long
getName()
long
int
hashCode()
setBroadcastEndpointFactory
(BroadcastEndpointFactory endpointFactory) setDiscoveryInitialWaitTimeout
(long discoveryInitialWaitTimeout) setRefreshTimeout
(long refreshTimeout) toString()
-
Constructor Details
-
DiscoveryGroupConfiguration
public DiscoveryGroupConfiguration()
-
-
Method Details
-
getName
-
getRefreshTimeout
public long getRefreshTimeout() -
setName
- Parameters:
name
- the name to set
-
setRefreshTimeout
- Parameters:
refreshTimeout
- the refreshTimeout to set
-
getDiscoveryInitialWaitTimeout
public long getDiscoveryInitialWaitTimeout()- Returns:
- the discoveryInitialWaitTimeout
-
setDiscoveryInitialWaitTimeout
- Parameters:
discoveryInitialWaitTimeout
- the discoveryInitialWaitTimeout to set
-
getBroadcastEndpointFactory
-
setBroadcastEndpointFactory
public DiscoveryGroupConfiguration setBroadcastEndpointFactory(BroadcastEndpointFactory endpointFactory) -
equals
-
hashCode
public int hashCode() -
toString
-