Interface Service
-
- All Superinterfaces:
Stateful<LifecycleState>
- All Known Implementing Classes:
AbstractDynamicService
,AbstractLazyService
,AbstractOnDemandService
,AbstractPoolingService
,AnalyticsService
,ConfigService
,KeyValueService
,OldAnalyticsService
,OldKeyValueService
,OldQueryService
,OldSearchService
,OldViewService
,PooledService
,QueryService
,SearchService
,ViewService
public interface Service extends Stateful<LifecycleState>
- Since:
- 1.0
- Author:
- Michael Nitschinger
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
Service.EndpointFactory
A helper factory which generates endpoints.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description rx.Observable<LifecycleState>
connect()
rx.Observable<EndpointHealth>
diagnostics()
Returns endpoint health information for all endpoints this service is currently associated with.rx.Observable<LifecycleState>
disconnect()
BucketServiceMapping
mapping()
Returns the mapping for the givenService
.void
send(CouchbaseRequest request)
Sends aCouchbaseRequest
into the service and eventually returns aCouchbaseResponse
.ServiceType
type()
Returns the type for the givenService
.-
Methods inherited from interface com.couchbase.client.core.state.Stateful
hasSubscribers, isState, state, states
-
-
-
-
Method Detail
-
send
void send(CouchbaseRequest request)
Sends aCouchbaseRequest
into the service and eventually returns aCouchbaseResponse
. TheCouchbaseResponse
is not returned directly, but is wrapped into aObservable
.- Parameters:
request
- the request to send.
-
mapping
BucketServiceMapping mapping()
Returns the mapping for the givenService
.- Returns:
- the mapping.
-
type
ServiceType type()
Returns the type for the givenService
.- Returns:
- the type.
-
connect
rx.Observable<LifecycleState> connect()
-
disconnect
rx.Observable<LifecycleState> disconnect()
-
diagnostics
rx.Observable<EndpointHealth> diagnostics()
Returns endpoint health information for all endpoints this service is currently associated with.
-
-