public class NetworkResolution extends Object
Configuration options for CoreEnvironment.networkResolution()
.
Modifier and Type | Field and 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.
|
Modifier and Type | Method and 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() |
public static NetworkResolution DEFAULT
Pick whatever the server returns in the config, this is the old and backwards compatible mode (server default).
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)!
public static NetworkResolution EXTERNAL
Pins it to external resolution.
public static NetworkResolution custom(String name)
Provide a network resolution option which is not covered by the statics defined in this class.
name
- the name to use.NetworkResolution
.public String name()
Returns the wire representation of the network resolution setting.
Copyright © 2018 Couchbase, Inc.. All rights reserved.