public class ConnectionString extends Object
ConnectionString
.Modifier and Type | Class and Description |
---|---|
static class |
ConnectionString.Scheme |
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_SCHEME |
Modifier | Constructor and Description |
---|---|
protected |
ConnectionString(String input) |
Modifier and Type | Method and Description |
---|---|
List<InetSocketAddress> |
allHosts()
Get the list of all hosts set on the connection string.
|
static ConnectionString |
create(String input) |
static ConnectionString |
fromHostnames(List<String> hostnames) |
List<InetSocketAddress> |
hosts()
Get the list of hosts that could be resolved
|
Map<String,String> |
params() |
ConnectionString.Scheme |
scheme() |
String |
toString() |
String |
username() |
public static final String DEFAULT_SCHEME
protected ConnectionString(String input)
public static ConnectionString create(String input)
public static ConnectionString fromHostnames(List<String> hostnames)
public ConnectionString.Scheme scheme()
public String username()
public List<InetSocketAddress> hosts()
public List<InetSocketAddress> allHosts()
Copyright © 2018 Couchbase, Inc.. All rights reserved.