connect
fun connect(connectionString: String, username: String, password: String, envConfigBlock: ClusterEnvironmentConfigBlock): Cluster
Content copied to clipboard
Connects to a Couchbase cluster, authenticating with username and password.
fun connect(connectionString: String, username: String, password: String, envBuilder: ClusterEnvironment.Builder = ClusterEnvironment.builder()): Cluster
Content copied to clipboard
Connects to a Couchbase cluster, authenticating with username and password.
Accepts a traditional ClusterEnvironment.Builder so you can opt out of using the cluster environment config DSL.
Parameters
env Builder
Configuration for the new cluster.
fun connect(connectionString: String, authenticator: Authenticator, envConfigBlock: ClusterEnvironmentConfigBlock): Cluster
Content copied to clipboard
Connects to a Couchbase cluster using an alternate authentication strategy like CertificateAuthenticator.
fun connect(connectionString: String, authenticator: Authenticator, envBuilder: ClusterEnvironment.Builder = ClusterEnvironment.builder()): Cluster
Content copied to clipboard
Connects to a Couchbase cluster using an alternate authentication strategy like CertificateAuthenticator.
Accepts a traditional ClusterEnvironment.Builder so you can opt out of using the cluster environment config DSL.
Parameters
env Builder
Configuration for the new cluster.