Interface NetworkSelector

All Known Implementing Classes:
NetworkSelector.AutoNetworkSelector

public interface NetworkSelector
Helps the config parser select the correct alternate addresses.
  • Field Details

  • Method Details

    • selectNetwork

      Optional<com.couchbase.client.core.env.NetworkResolution> selectNetwork(List<Map<com.couchbase.client.core.env.NetworkResolution,NodeInfo>> nodes)
    • create

      static NetworkSelector create(com.couchbase.client.core.env.NetworkResolution network, Set<com.couchbase.client.core.env.SeedNode> seedNodes)
      Parameters:
      network - The config parser's final output will include only addresses for the specified network. Pass NetworkResolution.AUTO to apply a heuristic that selects the network based on the bootstrap addresses provided by the user.
      seedNodes - Addresses that were used to bootstrap the connector. May be empty if network is not NetworkResolution.AUTO. IMPORTANT: In this context, an absent port means that port should not be used for address matching. Caller is responsible for supplying default ports, if applicable.
    • autoDetect

      static NetworkSelector autoDetect(Set<com.couchbase.client.core.env.SeedNode> seedNodes)