Package com.couchbase.client.java
Class ReactiveBucket
- java.lang.Object
-
- com.couchbase.client.java.ReactiveBucket
-
public class ReactiveBucket extends Object
Provides access to a Couchbase bucket in a reactive fashion.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AsyncBucket
async()
Provides access to the underlyingAsyncBucket
.Mono<ReactiveCollection>
collection(String name)
Opens the collection with the given name for thisReactiveBucket
.ReactiveCollectionManager
collections()
Core
core()
Provides access to the underlyingCore
.Mono<ReactiveCollection>
defaultCollection()
Opens the default collection for thisReactiveBucket
.Mono<ReactiveScope>
defaultScope()
Opens the defaultReactiveScope
.ClusterEnvironment
environment()
Returns the attachedClusterEnvironment
.String
name()
Returns the name of theReactiveBucket
.Mono<PingResult>
ping()
Performs a diagnostic active "ping" call on all services.Mono<PingResult>
ping(PingOptions options)
Performs a diagnostic active "ping" call with custom options, on all services.Mono<ReactiveScope>
scope(String name)
Opens theReactiveScope
with the given name.Mono<ReactiveViewResult>
viewQuery(String designDoc, String viewName)
Mono<ReactiveViewResult>
viewQuery(String designDoc, String viewName, ViewOptions options)
-
-
-
Method Detail
-
async
public AsyncBucket async()
Provides access to the underlyingAsyncBucket
.
-
name
public String name()
Returns the name of theReactiveBucket
.
-
core
@Volatile public Core core()
Provides access to the underlyingCore
.This is advanced API, use with care!
-
collections
@Volatile public ReactiveCollectionManager collections()
-
environment
public ClusterEnvironment environment()
Returns the attachedClusterEnvironment
.
-
scope
@Volatile public Mono<ReactiveScope> scope(String name)
Opens theReactiveScope
with the given name.- Parameters:
name
- the name of the scope.- Returns:
- the
ReactiveScope
once opened.
-
defaultScope
@Volatile public Mono<ReactiveScope> defaultScope()
Opens the defaultReactiveScope
.- Returns:
- the
ReactiveScope
once opened.
-
defaultCollection
public Mono<ReactiveCollection> defaultCollection()
Opens the default collection for thisReactiveBucket
.- Returns:
- the
ReactiveCollection
once opened.
-
collection
@Volatile public Mono<ReactiveCollection> collection(String name)
Opens the collection with the given name for thisReactiveBucket
.- Returns:
- the
ReactiveCollection
once opened.
-
viewQuery
public Mono<ReactiveViewResult> viewQuery(String designDoc, String viewName)
-
viewQuery
public Mono<ReactiveViewResult> viewQuery(String designDoc, String viewName, ViewOptions options)
-
ping
@Volatile public Mono<PingResult> ping(PingOptions options)
Performs a diagnostic active "ping" call with custom options, on all services. Note that since each service has different timeouts, you need to provide a timeout that suits your needs (how long each individual service ping should take max before it times out).- Parameters:
options
- options controlling the final ping result- Returns:
- a ping report once created.
-
ping
@Volatile public Mono<PingResult> ping()
Performs a diagnostic active "ping" call on all services. Note that since each service has different timeouts, you need to provide a timeout that suits your needs (how long each individual service ping should take max before it times out).- Returns:
- a ping report once created.
-
-