Package com.couchbase.client.core.util
Class ConnectionString
java.lang.Object
com.couchbase.client.core.util.ConnectionString
Implements a
ConnectionString
.- Since:
- 2.4.0
- Author:
- Michael Nitschinger
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static enum
static class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ConnectionString
static ConnectionString
fromHostnames
(List<String> hostnames) hosts()
Get the list of all hosts from the connection string.boolean
Returns true if this connection string qualifies for DNS SRV resolving per spec.original()
Returns the unmodified, original connection string.params()
scheme()
toString()
username()
-
Field Details
-
DEFAULT_SCHEME
- See Also:
-
-
Constructor Details
-
ConnectionString
-
-
Method Details
-
create
-
fromHostnames
-
scheme
-
username
-
hosts
Get the list of all hosts from the connection string.- Returns:
- hosts
-
params
-
isValidDnsSrv
public boolean isValidDnsSrv()Returns true if this connection string qualifies for DNS SRV resolving per spec.To be valid, the following criteria have to be met: only couchbase(s) schema, single host with no port specified and no IP address.
-
toString
-
original
Returns the unmodified, original connection string.
-