org.apache.pekko.stream.connectors.couchbase.scaladsl
CouchbaseSession
Companion trait CouchbaseSession
object CouchbaseSession
Scala API: Gives access to Couchbase.
- Alphabetic
- By Inheritance
- CouchbaseSession
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- 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.
- 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
CouchbaseSession
s.Create a given bucket using a pre-existing cluster client, allowing for it to be shared among multiple
CouchbaseSession
s. The cluster client's life-cycle is the user's responsibility. - 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.