org.apache.pekko.stream.connectors.couchbase.javadsl
CouchbaseSession
Companion class CouchbaseSession
object CouchbaseSession
Java API: Gives access to Couchbase.
- Alphabetic
- By Inheritance
- CouchbaseSession
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- def create(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 create(client: AsyncCluster, bucketName: String, executor: Executor): CompletionStage[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 create(settings: CouchbaseSessionSettings, bucketName: String, executor: Executor): CompletionStage[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.
- def createClient(settings: CouchbaseSessionSettings, executor: Executor): CompletionStage[AsyncCluster]
Connects to a Couchbase cluster by creating an
AsyncCluster
.Connects to a Couchbase cluster by creating an
AsyncCluster
. The life-cycle of it is the user's responsibility.