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
.Core
core()
Provides access to the underlyingCore
.Mono<ReactiveCollection>
defaultCollection()
Opens the default collection for thisReactiveBucket
.ClusterEnvironment
environment()
Returns the attachedClusterEnvironment
.String
name()
Returns the name of theReactiveBucket
.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
@Uncommitted public Core core()
Provides access to the underlyingCore
.This is advanced API, use with care!
-
environment
public ClusterEnvironment environment()
Returns the attachedClusterEnvironment
.
-
scope
public Mono<ReactiveScope> scope(String name)
Opens theReactiveScope
with the given name.- Parameters:
name
- the name of the scope.- Returns:
- the
ReactiveScope
once opened.
-
defaultCollection
public Mono<ReactiveCollection> defaultCollection()
Opens the default collection for thisReactiveBucket
.- Returns:
- the
ReactiveCollection
once opened.
-
collection
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)
-
-