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 |
---|---|
rx.Observable<LifecycleState> |
connect()
|
rx.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 . |
void 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
.
rx.Observable<LifecycleState> connect()
rx.Observable<LifecycleState> disconnect()