public interface Service extends Stateful<LifecycleState>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Service.EndpointFactory
A helper factory which generates endpoints.
|
| Modifier and Type | Method and Description |
|---|---|
Observable<LifecycleState> |
connect()
|
Observable<LifecycleState> |
disconnect()
|
BucketServiceMapping |
mapping()
Returns the mapping for the given
Service. |
void |
send(CouchbaseRequest request)
Sends a
CouchbaseRequest into the service and eventually returns a CouchbaseResponse. |
ServiceType |
type()
Returns the type for the given
Service. |
hasSubscribers, isState, state, statesvoid send(CouchbaseRequest request)
Sends a CouchbaseRequest into the service and eventually returns a CouchbaseResponse.
The CouchbaseResponse is not returned directly, but is wrapped into a Observable.
request - the request to send.BucketServiceMapping mapping()
Returns the mapping for the given Service.
ServiceType type()
Returns the type for the given Service.
Observable<LifecycleState> connect()
Observable<LifecycleState> disconnect()
Copyright © 2016 Couchbase, Inc.. All rights reserved.