Class MulticastDiscoveryConfig

java.lang.Object
io.atomix.cluster.discovery.NodeDiscoveryConfig
io.atomix.cluster.discovery.MulticastDiscoveryConfig
All Implemented Interfaces:
io.atomix.utils.config.Config, io.atomix.utils.config.TypedConfig<NodeDiscoveryProvider.Type>

public class MulticastDiscoveryConfig
extends NodeDiscoveryConfig
Multicast discovery configuration.
  • Constructor Details

  • Method Details

    • getType

      public NodeDiscoveryProvider.Type getType()
    • getBroadcastInterval

      public java.time.Duration getBroadcastInterval()
      Returns the broadcast interval.
      Returns:
      the broadcast interval
    • setBroadcastInterval

      public MulticastDiscoveryConfig setBroadcastInterval​(java.time.Duration broadcastInterval)
      Sets the broadcast interval.
      Parameters:
      broadcastInterval - the broadcast interval
      Returns:
      the group membership configuration
    • getFailureThreshold

      @Deprecated public int getFailureThreshold()
      Deprecated.
      Returns the failure detector threshold.
      Returns:
      the failure detector threshold
    • setFailureThreshold

      @Deprecated public MulticastDiscoveryConfig setFailureThreshold​(int failureThreshold)
      Deprecated.
      Sets the failure detector threshold.
      Parameters:
      failureThreshold - the failure detector threshold
      Returns:
      the group membership configuration
    • getFailureTimeout

      public java.time.Duration getFailureTimeout()
      Returns the base failure timeout.
      Returns:
      the base failure timeout
    • setFailureTimeout

      public MulticastDiscoveryConfig setFailureTimeout​(java.time.Duration failureTimeout)
      Sets the base failure timeout.
      Parameters:
      failureTimeout - the base failure timeout
      Returns:
      the group membership configuration