Package com.couchbase.client.core.env
Class NetworkResolution
java.lang.Object
com.couchbase.client.core.env.NetworkResolution
Configuration options for the network resolution setting.
- Since:
- 1.6.0
-
Field Summary
Modifier and TypeFieldDescriptionstatic final NetworkResolution
Based on heuristics discovers if internal or external resolution will be used.static final NetworkResolution
Pick whatever the server returns in the config, this is the old and backwards compatible mode (server default).static final NetworkResolution
Pins it to external resolution. -
Method Summary
-
Field Details
-
DEFAULT
Pick whatever the server returns in the config, this is the old and backwards compatible mode (server default). -
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
Pins it to external resolution.
-
-
Method Details
-
valueOf
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 ofAUTO
if the given name is empty or null (useful for parsing config properties).- Parameters:
name
- the name to use. May be null.- Returns:
- a
NetworkResolution
with the given name, orAUTO
if the given name is null or empty.
-
name
Returns the wire representation of the network resolution setting. -
equals
-
hashCode
public int hashCode() -
toString
-