Companion
Functions
Link copied to clipboard
fun connect(connectionString: String, authenticator: Authenticator, envBuilder: ClusterEnvironment.Builder = ClusterEnvironment.builder()): Cluster
Content copied to clipboard
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, username: String, password: String, envBuilder: ClusterEnvironment.Builder = ClusterEnvironment.builder()): Cluster
Content copied to clipboard
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.
Link copied to clipboard
fun connectUsingSharedEnvironment(connectionString: String, authenticator: Authenticator, env: ClusterEnvironment): Cluster
Content copied to clipboard
Connects to a Couchbase cluster using an alternate authentication strategy like CertificateAuthenticator.
fun connectUsingSharedEnvironment(connectionString: String, username: String, password: String, env: ClusterEnvironment): Cluster
Content copied to clipboard
Connects to a Couchbase cluster, authenticating with username and password.
Properties
Link copied to clipboard
True means exceeding maxAllowedInstances is a fatal error, false means just log a warning.
Link copied to clipboard
The number of connected Cluster instances that may exist at the same time. Calling Cluster.connect after this limit is reached will either fail or log a warning, depending on the value of failIfInstanceLimitReached.