Packages

object CouchbaseSession

Scala API: Gives access to Couchbase.

Source
CouchbaseSession.scala
See also

pekko.stream.connectors.couchbase.CouchbaseSessionRegistry

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

Value Members

  1. def apply(bucket: Bucket): CouchbaseSession

    Create a session against the given bucket.

    Create a session against the given bucket. You are responsible for managing the lifecycle of the couchbase client that the bucket was created with.

  2. def apply(cluster: AsyncCluster, bucketName: String)(implicit ec: ExecutionContext): Future[CouchbaseSession]

    Create a given bucket using a pre-existing cluster client, allowing for it to be shared among multiple CouchbaseSessions.

    Create a given bucket using a pre-existing cluster client, allowing for it to be shared among multiple CouchbaseSessions. The cluster client's life-cycle is the user's responsibility.

  3. def apply(settings: CouchbaseSessionSettings, bucketName: String)(implicit ec: ExecutionContext): Future[CouchbaseSession]

    Create a session against the given bucket.

    Create a session against the given bucket. The couchbase client used to connect will be created and then closed when the session is closed.