public interface Endpoint extends Stateful<LifecycleState>
Represents a stateful Endpoint
which abstracts the underlying channel.
Modifier and Type | Method and Description |
---|---|
Observable<LifecycleState> |
connect()
Connect the
Endpoint to the underlying channel. |
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 . |
hasSubscribers, isState, state, states
Observable<LifecycleState> connect()
Connect the Endpoint
to the underlying channel.
Observable
with the state after the connect process finishes.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.Copyright © 2014 Couchbase, Inc.