Packages

object AsyncCluster

Functions to allow creating an AsyncCluster, which represents a connection to a Couchbase cluster.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AsyncCluster
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. 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

  2. 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

  3. 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