object AsyncCluster
Functions to allow creating an AsyncCluster
, which represents a connection to a Couchbase cluster.
- Alphabetic
- By Inheritance
- AsyncCluster
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
def
connect(seedNodes: Set[SeedNode], options: ClusterOptions): Try[AsyncCluster]
Connect to a Couchbase cluster with a custom Set of com.couchbase.client.scala.env.SeedNode.
Connect to a Couchbase cluster with a custom Set of com.couchbase.client.scala.env.SeedNode.
Note that during opening of resources, all errors will be deferred until the first attempted operation.
- seedNodes
known nodes from the Couchbase cluster to use for bootstrapping.
- options
custom options used when connecting to the cluster.
- returns
an AsyncCluster representing a connection to the cluster
-
def
connect(connectionString: String, options: ClusterOptions): Try[AsyncCluster]
Connect to a Couchbase cluster with custom
Authenticator
.Connect to a Couchbase cluster with custom
Authenticator
.Note that during opening of resources, all errors will be deferred until the first attempted operation.
- connectionString
connection string used to locate the Couchbase cluster.
- options
custom options used when connecting to the cluster.
- returns
an AsyncCluster representing a connection to the cluster
-
def
connect(connectionString: String, username: String, password: String): Try[AsyncCluster]
Connect to a Couchbase cluster with a username and a password as credentials.
Connect to a Couchbase cluster with a username and a password as credentials.
Note that during opening of resources, all errors will be deferred until the first attempted operation.
- connectionString
connection string used to locate the Couchbase cluster.
- username
the name of a user with appropriate permissions on the cluster.
- password
the password of a user with appropriate permissions on the cluster.
- returns
an AsyncCluster representing a connection to the cluster