Package io.atomix.cluster.discovery
Class DnsDiscoveryConfig
java.lang.Object
io.atomix.cluster.discovery.NodeDiscoveryConfig
io.atomix.cluster.discovery.DnsDiscoveryConfig
- All Implemented Interfaces:
io.atomix.utils.config.Config,io.atomix.utils.config.TypedConfig<NodeDiscoveryProvider.Type>
public class DnsDiscoveryConfig extends NodeDiscoveryConfig
DNS discovery configuration.
-
Constructor Summary
Constructors Constructor Description DnsDiscoveryConfig() -
Method Summary
Modifier and Type Method Description java.time.DurationgetResolutionInterval()Returns the DNS resolution interval.StringgetService()Returns the discovery service.NodeDiscoveryProvider.TypegetType()DnsDiscoveryConfigsetResolutionInterval(java.time.Duration resolutionInterval)Sets the DNS resolution interval.DnsDiscoveryConfigsetService(String service)Sets the DNS service name.
-
Constructor Details
-
DnsDiscoveryConfig
public DnsDiscoveryConfig()
-
-
Method Details
-
getType
-
getService
Returns the discovery service.- Returns:
- the DNS service to use for discovery
-
setService
Sets the DNS service name.- Parameters:
service- the DNS service name- Returns:
- the DNS configuration
-
getResolutionInterval
public java.time.Duration getResolutionInterval()Returns the DNS resolution interval.- Returns:
- the DNS resolution interval
-
setResolutionInterval
Sets the DNS resolution interval.- Parameters:
resolutionInterval- the DNS resolution interval- Returns:
- the DNS configuration
-