public class CouchbaseCore extends Object implements ClusterFacade
The general implementation of a 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
A preconstructed BackpressureException
.
public CouchbaseCore()
Creates a new CouchbaseCore
.
public CouchbaseCore(CoreEnvironment environment)
Creates a new CouchbaseCore
.
public <R extends CouchbaseResponse> rx.Observable<R> send(CouchbaseRequest request)
ClusterFacade
Sends a 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
request
- the request to send.CouchbaseResponse
wrapped into a Observable
.public long id()
ClusterFacade
The core id is unique per core instance.
id
in interface ClusterFacade
public CoreContext ctx()
ClusterFacade
Exposes the currently used environment.
ctx
in interface ClusterFacade
Copyright © 2018 Couchbase, Inc.. All rights reserved.