public interface Endpoint extends Stateful<LifecycleState>
Represents a stateful Endpoint
which abstracts the underlying channel.
Modifier and Type | Method and Description |
---|---|
rx.Observable<LifecycleState> |
connect()
Connect the
Endpoint to the underlying channel. |
rx.Observable<LifecycleState> |
disconnect()
Disconnect the
Endpoint from the underlying channel. |
void |
send(CouchbaseRequest request)
Sends a
CouchbaseRequest into the endpoint and eventually returns a CouchbaseResponse . |
rx.Observable<LifecycleState> connect()
Connect the Endpoint
to the underlying channel.
Observable
with the state after the connect process finishes.rx.Observable<LifecycleState> disconnect()
Disconnect the Endpoint
from the underlying channel.
Observable
with the state after the disconnect process finishes.void send(CouchbaseRequest request)
Sends a CouchbaseRequest
into the endpoint and eventually returns a CouchbaseResponse
.
request
- the request to send.