public class NetworkResolution extends Object
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 |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
String |
name()
Returns the wire representation of the network resolution setting.
|
String |
toString() |
static NetworkResolution |
valueOf(String name)
Returns a network resolution option with the given name.
|
public static final NetworkResolution DEFAULT
public static final NetworkResolution AUTO
This is the default setting (not to be confused with the default mode)!
public static final NetworkResolution EXTERNAL
public static NetworkResolution valueOf(String name)
AUTO
if the given name is empty or null
(useful for parsing config properties).name
- the name to use. May be null.NetworkResolution
with the given name, or AUTO
if the given name is null or empty.public String name()
Copyright © 2020 Couchbase, Inc.. All rights reserved.