@Stability.Internal public class DnsSrv extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_DNS_SECURE_SERVICE
The default DNS prefix for encrypted connections.
|
static String |
DEFAULT_DNS_SERVICE
The default DNS prefix for not encrypted connections.
|
Modifier and Type | Method and Description |
---|---|
static List<String> |
fromDnsSrv(String serviceName,
boolean full,
boolean secure)
Fetch a bootstrap list from DNS SRV using default OS name resolution.
|
public static final String DEFAULT_DNS_SERVICE
public static final String DEFAULT_DNS_SECURE_SERVICE
public static List<String> fromDnsSrv(String serviceName, boolean full, boolean secure) throws NameNotFoundException
serviceName
- the DNS SRV locator.full
- if the service name is the full one or needs to be enriched by the couchbase prefixes.secure
- if the secure service prefix should be used.NameNotFoundException
- if there's no SRV record associated with serviceNameCopyright © 2024 Couchbase, Inc.. All rights reserved.