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
CoreEnvironment.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
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 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
-
custom
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
Returns the wire representation of the network resolution setting. -
equals
-
hashCode
public int hashCode() -
toString
-