public class CouchbaseCore extends Object implements ClusterFacade
ClusterFacade
.Modifier and Type | Field and Description |
---|---|
static BackpressureException |
BACKPRESSURE_EXCEPTION
A preconstructed
BackpressureException . |
Constructor and Description |
---|
CouchbaseCore()
Creates a new
CouchbaseCore . |
CouchbaseCore(CoreEnvironment environment)
Creates a new
CouchbaseCore . |
Modifier and Type | Method and Description |
---|---|
CoreContext |
ctx()
Exposes the currently used environment.
|
long |
id()
The core id is unique per core instance.
|
<R extends CouchbaseResponse> |
send(CouchbaseRequest request)
Sends a
CouchbaseRequest into the cluster and eventually returns a CouchbaseResponse . |
public static final BackpressureException BACKPRESSURE_EXCEPTION
BackpressureException
.public CouchbaseCore()
CouchbaseCore
.public CouchbaseCore(CoreEnvironment environment)
CouchbaseCore
.public <R extends CouchbaseResponse> rx.Observable<R> send(CouchbaseRequest request)
ClusterFacade
CouchbaseRequest
into the cluster and eventually returns a CouchbaseResponse
.
The CouchbaseResponse
is not returned directly, but is wrapped into a Observable
.send
in interface ClusterFacade
R
- the generic response type.request
- the request to send.CouchbaseResponse
wrapped into a Observable
.public long id()
ClusterFacade
id
in interface ClusterFacade
public CoreContext ctx()
ClusterFacade
ctx
in interface ClusterFacade
Copyright © 2019 Couchbase, Inc.. All rights reserved.