Package com.couchbase.client.core.env
Class NetworkResolution
- java.lang.Object
-
- com.couchbase.client.core.env.NetworkResolution
-
public class NetworkResolution extends Object
Configuration options forCoreEnvironment.networkResolution()
.- Since:
- 1.6.0
- Author:
- Michael Nitschinger
-
-
Field Summary
Fields Modifier and Type Field Description static NetworkResolution
AUTO
Based on heuristics discovers if internal or external resolution will be used.static NetworkResolution
DEFAULT
Pick whatever the server returns in the config, this is the old and backwards compatible mode (server default).static NetworkResolution
EXTERNAL
Pins it to external resolution.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NetworkResolution
custom(String name)
Provide a network resolution option which is not covered by the statics defined in this class.boolean
equals(Object o)
int
hashCode()
String
name()
Returns the wire representation of the network resolution setting.String
toString()
-
-
-
Field Detail
-
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 Detail
-
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.
-
-