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 |
---|---|
<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> 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
.Copyright © 2017 Couchbase, Inc.. All rights reserved.