Class NetworkResolution

java.lang.Object
com.couchbase.client.core.env.NetworkResolution

public class NetworkResolution
extends Object
Configuration options for CoreEnvironment.networkResolution().
Since:
1.6.0
Author:
Michael Nitschinger
  • Field Details

    • DEFAULT

      public static NetworkResolution DEFAULT
      Pick whatever the server returns in the config, this is the old and backwards compatible mode (server default).
    • AUTO

      public static NetworkResolution AUTO
      Based on heuristics discovers if internal or external resolution will be used. This is the default setting (not to be confused with the default mode)!
    • EXTERNAL

      public static NetworkResolution EXTERNAL
      Pins it to external resolution.
  • Method Details

    • custom

      public static NetworkResolution custom​(String name)
      Provide a network resolution option which is not covered by the statics defined in this class.
      Parameters:
      name - the name to use.
      Returns:
      a new NetworkResolution.
    • name

      public String name()
      Returns the wire representation of the network resolution setting.
    • equals

      public boolean equals​(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object