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() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
BroadcastEndpointFactory |
getBroadcastEndpointFactory() |
long |
getDiscoveryInitialWaitTimeout() |
String |
getName() |
long |
getRefreshTimeout() |
int |
hashCode() |
DiscoveryGroupConfiguration |
setBroadcastEndpointFactory(BroadcastEndpointFactory endpointFactory) |
DiscoveryGroupConfiguration |
setDiscoveryInitialWaitTimeout(long discoveryInitialWaitTimeout) |
DiscoveryGroupConfiguration |
setName(String name) |
DiscoveryGroupConfiguration |
setRefreshTimeout(long refreshTimeout) |
String |
toString() |
public String getName()
public long getRefreshTimeout()
public DiscoveryGroupConfiguration setName(String name)
name
- the name to setpublic DiscoveryGroupConfiguration setRefreshTimeout(long refreshTimeout)
refreshTimeout
- the refreshTimeout to setpublic long getDiscoveryInitialWaitTimeout()
public DiscoveryGroupConfiguration setDiscoveryInitialWaitTimeout(long discoveryInitialWaitTimeout)
discoveryInitialWaitTimeout
- the discoveryInitialWaitTimeout to setpublic BroadcastEndpointFactory getBroadcastEndpointFactory()
public DiscoveryGroupConfiguration setBroadcastEndpointFactory(BroadcastEndpointFactory endpointFactory)
Copyright © 2017 JBoss by Red Hat. All rights reserved.