Class BootstrapDiscoveryBuilder

java.lang.Object
io.atomix.cluster.discovery.NodeDiscoveryBuilder
io.atomix.cluster.discovery.BootstrapDiscoveryBuilder
All Implemented Interfaces:
io.atomix.utils.Builder<NodeDiscoveryProvider>

public class BootstrapDiscoveryBuilder
extends NodeDiscoveryBuilder
Bootstrap discovery builder.
  • Constructor Details

  • Method Details

    • withNodes

      public BootstrapDiscoveryBuilder withNodes​(io.atomix.utils.net.Address... nodes)
      Sets the bootstrap nodes.
      Parameters:
      nodes - the bootstrap nodes
      Returns:
      the location provider builder
    • withNodes

      public BootstrapDiscoveryBuilder withNodes​(Node... nodes)
      Sets the bootstrap nodes.
      Parameters:
      nodes - the bootstrap nodes
      Returns:
      the location provider builder
    • withNodes

      public BootstrapDiscoveryBuilder withNodes​(Collection<Node> locations)
      Sets the bootstrap nodes.
      Parameters:
      locations - the bootstrap member locations
      Returns:
      the location provider builder
    • withHeartbeatInterval

      public BootstrapDiscoveryBuilder withHeartbeatInterval​(java.time.Duration heartbeatInterval)
      Sets the failure detection heartbeat interval.
      Parameters:
      heartbeatInterval - the failure detection heartbeat interval
      Returns:
      the location provider builder
    • withFailureThreshold

      public BootstrapDiscoveryBuilder withFailureThreshold​(int failureThreshold)
      Sets the phi accrual failure threshold.
      Parameters:
      failureThreshold - the phi accrual failure threshold
      Returns:
      the location provider builder
    • withFailureTimeout

      public BootstrapDiscoveryBuilder withFailureTimeout​(java.time.Duration failureTimeout)
      Sets the failure timeout to use prior to phi failure detectors being populated.
      Parameters:
      failureTimeout - the failure timeout
      Returns:
      the location provider builder
    • build

      public NodeDiscoveryProvider build()