public final class DiscoveryGroupConfiguration extends Object implements Serializable
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.
Constructor and Description |
---|
DiscoveryGroupConfiguration(long refreshTimeout,
long discoveryInitialWaitTimeout,
BroadcastEndpointFactoryConfiguration endpointFactoryConfiguration) |
DiscoveryGroupConfiguration(String name,
long refreshTimeout,
long discoveryInitialWaitTimeout,
BroadcastEndpointFactoryConfiguration endpointFactoryConfiguration) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
BroadcastEndpointFactoryConfiguration |
getBroadcastEndpointFactoryConfiguration() |
long |
getDiscoveryInitialWaitTimeout() |
String |
getName() |
long |
getRefreshTimeout() |
int |
hashCode() |
void |
setDiscoveryInitialWaitTimeout(long discoveryInitialWaitTimeout) |
void |
setName(String name) |
void |
setRefreshTimeout(long refreshTimeout) |
String |
toString() |
public DiscoveryGroupConfiguration(String name, long refreshTimeout, long discoveryInitialWaitTimeout, BroadcastEndpointFactoryConfiguration endpointFactoryConfiguration)
public DiscoveryGroupConfiguration(long refreshTimeout, long discoveryInitialWaitTimeout, BroadcastEndpointFactoryConfiguration endpointFactoryConfiguration)
public String getName()
public long getRefreshTimeout()
public void setName(String name)
name
- the name to setpublic void setRefreshTimeout(long refreshTimeout)
refreshTimeout
- the refreshTimeout to setpublic long getDiscoveryInitialWaitTimeout()
public void setDiscoveryInitialWaitTimeout(long discoveryInitialWaitTimeout)
discoveryInitialWaitTimeout
- the discoveryInitialWaitTimeout to setpublic BroadcastEndpointFactoryConfiguration getBroadcastEndpointFactoryConfiguration()
Copyright © 2018 JBoss by Red Hat. All rights reserved.