Package com.couchbase.client.core
Interface ClusterFacade
-
- All Known Implementing Classes:
CouchbaseCore
public interface ClusterFacade
Represents a Couchbase Cluster.- Since:
- 1.0
- Author:
- Michael Nitschinger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description CoreContext
ctx()
Exposes the currently used environment.long
id()
Deprecated.Usectx()
which also contains the ID.<R extends CouchbaseResponse>
rx.Observable<R>send(CouchbaseRequest request)
Sends aCouchbaseRequest
into the cluster and eventually returns aCouchbaseResponse
.
-
-
-
Method Detail
-
send
@Committed @Public <R extends CouchbaseResponse> rx.Observable<R> send(CouchbaseRequest request)
Sends aCouchbaseRequest
into the cluster and eventually returns aCouchbaseResponse
. TheCouchbaseResponse
is not returned directly, but is wrapped into aObservable
.- Type Parameters:
R
- the generic response type.- Parameters:
request
- the request to send.- Returns:
- the
CouchbaseResponse
wrapped into aObservable
.
-
id
@Deprecated long id()
Deprecated.Usectx()
which also contains the ID.The core id is unique per core instance.- Returns:
- returns the ID for this core.
-
ctx
CoreContext ctx()
Exposes the currently used environment.- Returns:
- the environment used.
-
-