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 Details

  • Method Details

    • getType

      public NodeDiscoveryProvider.Type getType()
    • getService

      public String getService()
      Returns the discovery service.
      Returns:
      the DNS service to use for discovery
    • setService

      public DnsDiscoveryConfig setService​(String service)
      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

      public DnsDiscoveryConfig setResolutionInterval​(java.time.Duration resolutionInterval)
      Sets the DNS resolution interval.
      Parameters:
      resolutionInterval - the DNS resolution interval
      Returns:
      the DNS configuration