Package com.couchbase.client.core.env
Class NetworkResolution
- java.lang.Object
-
- com.couchbase.client.core.env.NetworkResolution
-
public class NetworkResolution extends Object
Configuration options for the network resolution setting.- Since:
- 1.6.0
-
-
Field Summary
Fields Modifier and Type Field Description static NetworkResolutionAUTOBased on heuristics discovers if internal or external resolution will be used.static NetworkResolutionDEFAULTPick whatever the server returns in the config, this is the old and backwards compatible mode (server default).static NetworkResolutionEXTERNALPins it to external resolution.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)inthashCode()Stringname()Returns the wire representation of the network resolution setting.StringtoString()static NetworkResolutionvalueOf(String name)Returns a network resolution option with the given name.
-
-
-
Field Detail
-
DEFAULT
public static final NetworkResolution DEFAULT
Pick whatever the server returns in the config, this is the old and backwards compatible mode (server default).
-
AUTO
public static final 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 final NetworkResolution EXTERNAL
Pins it to external resolution.
-
-
Method Detail
-
valueOf
public static NetworkResolution valueOf(String name)
Returns a network resolution option with the given name. This allows creating custom values not covered by the statics defined in this class, and also provides a default value ofAUTOif the given name is empty or null (useful for parsing config properties).- Parameters:
name- the name to use. May be null.- Returns:
- a
NetworkResolutionwith the given name, orAUTOif the given name is null or empty.
-
name
public String name()
Returns the wire representation of the network resolution setting.
-
-