public class ReactiveBucket extends Object
Modifier and Type | Method and Description |
---|---|
AsyncBucket |
async()
Provides access to the underlying
AsyncBucket . |
ReactiveCollection |
collection(String collectionName)
Opens the collection with the given name for this
ReactiveBucket . |
ReactiveCollectionManager |
collections() |
Core |
core()
Provides access to the underlying
Core . |
ReactiveCollection |
defaultCollection()
Opens the default collection for this
ReactiveBucket . |
ReactiveScope |
defaultScope()
Opens the default
ReactiveScope . |
ClusterEnvironment |
environment()
Returns the attached
ClusterEnvironment . |
String |
name()
Returns the name of the
ReactiveBucket . |
Mono<PingResult> |
ping()
Performs application-level ping requests against services in the couchbase cluster.
|
Mono<PingResult> |
ping(PingOptions options)
Performs application-level ping requests with custom options against services in the couchbase cluster.
|
ReactiveScope |
scope(String name)
Opens the
ReactiveScope with the given name. |
ReactiveViewIndexManager |
viewIndexes() |
Mono<ReactiveViewResult> |
viewQuery(String designDoc,
String viewName) |
Mono<ReactiveViewResult> |
viewQuery(String designDoc,
String viewName,
ViewOptions options) |
Mono<Void> |
waitUntilReady(Duration timeout)
Waits until the desired
ClusterState is reached. |
Mono<Void> |
waitUntilReady(Duration timeout,
WaitUntilReadyOptions options)
Waits until the desired
ClusterState is reached. |
public AsyncBucket async()
AsyncBucket
.public String name()
ReactiveBucket
.@Stability.Volatile public Core core()
Core
.
This is advanced API, use with care!
public ReactiveCollectionManager collections()
public ReactiveViewIndexManager viewIndexes()
public ClusterEnvironment environment()
ClusterEnvironment
.@Stability.Volatile public ReactiveScope scope(String name)
ReactiveScope
with the given name.name
- the name of the scope.ReactiveScope
once opened.@Stability.Volatile public ReactiveScope defaultScope()
ReactiveScope
.ReactiveScope
once opened.public ReactiveCollection defaultCollection()
ReactiveBucket
.ReactiveCollection
once opened.@Stability.Volatile public ReactiveCollection collection(String collectionName)
ReactiveBucket
.ReactiveCollection
once opened.public Mono<ReactiveViewResult> viewQuery(String designDoc, String viewName)
public Mono<ReactiveViewResult> viewQuery(String designDoc, String viewName, ViewOptions options)
public Mono<PingResult> ping()
PingResult
once complete.public Mono<PingResult> ping(PingOptions options)
PingResult
once complete.public Mono<Void> waitUntilReady(Duration timeout)
ClusterState
is reached.
This method will wait until either the cluster state is "online", or the timeout is reached. Since the SDK is bootstrapping lazily, this method allows to eagerly check during bootstrap if all of the services are online and usable before moving on.
timeout
- the maximum time to wait until readiness.public Mono<Void> waitUntilReady(Duration timeout, WaitUntilReadyOptions options)
ClusterState
is reached.
This method will wait until either the cluster state is "online" by default, or the timeout is reached. Since the
SDK is bootstrapping lazily, this method allows to eagerly check during bootstrap if all of the services are online
and usable before moving on. You can tune the properties through WaitUntilReadyOptions
.
timeout
- the maximum time to wait until readiness.options
- the options to customize the readiness waiting.Copyright © 2021 Couchbase, Inc.. All rights reserved.