Class ReactiveBucket
-
Method Summary
Modifier and TypeMethodDescriptionasync()
Provides access to the underlyingAsyncBucket
.collection
(String collectionName) Provides access to the collection with the given name for thisReactiveBucket
using the default scope.core()
Provides access to the underlyingCore
.Opens the default collection for thisReactiveBucket
using the default scope.Opens the defaultReactiveScope
.Returns the attachedClusterEnvironment
.name()
Returns the name of theReactiveBucket
.ping()
Performs application-level ping requests against services in the couchbase cluster.ping
(PingOptions options) Performs application-level ping requests with custom options against services in the couchbase cluster.Opens theReactiveScope
with the given name.viewQuery
(String designDoc, String viewName, ViewOptions options) waitUntilReady
(Duration timeout) Waits until the desiredClusterState
is reached.waitUntilReady
(Duration timeout, WaitUntilReadyOptions options) Waits until the desiredClusterState
is reached.
-
Method Details
-
async
Provides access to the underlyingAsyncBucket
. -
name
Returns the name of theReactiveBucket
. -
core
Provides access to the underlyingCore
.This is advanced API, use with care!
-
collections
-
viewIndexes
-
environment
Returns the attachedClusterEnvironment
. -
scope
Opens theReactiveScope
with the given name.- Parameters:
name
- the name of the scope.- Returns:
- the
ReactiveScope
once opened.
-
defaultScope
Opens the defaultReactiveScope
.- Returns:
- the
ReactiveScope
once opened.
-
defaultCollection
Opens the default collection for thisReactiveBucket
using the default scope.This method does not block and the client will try to establish all needed resources in the background. If you need to eagerly await until all resources are established before performing an operation, use the
waitUntilReady(Duration)
method on theReactiveBucket
.- Returns:
- the opened default
ReactiveCollection
.
-
collection
Provides access to the collection with the given name for thisReactiveBucket
using the default scope.This method does not block and the client will try to establish all needed resources in the background. If you need to eagerly await until all resources are established before performing an operation, use the
waitUntilReady(Duration)
method on theReactiveBucket
.- Returns:
- the opened named
ReactiveCollection
.
-
viewQuery
-
viewQuery
-
ping
Performs application-level ping requests against services in the couchbase cluster.- Returns:
- the
PingResult
once complete.
-
ping
Performs application-level ping requests with custom options against services in the couchbase cluster.- Returns:
- the
PingResult
once complete.
-
waitUntilReady
Waits until the desiredClusterState
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.
- Parameters:
timeout
- the maximum time to wait until readiness.- Returns:
- a mono that completes either once ready or timeout.
-
waitUntilReady
Waits until the desiredClusterState
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
.- Parameters:
timeout
- the maximum time to wait until readiness.options
- the options to customize the readiness waiting.- Returns:
- a mono that completes either once ready or timeout.
-