Class AbstractPoolingService
java.lang.Object
com.couchbase.client.core.state.AbstractStateMachine<LifecycleState>
com.couchbase.client.core.service.AbstractDynamicService
com.couchbase.client.core.service.AbstractPoolingService
- All Implemented Interfaces:
Service
,Stateful<LifecycleState>
- Direct Known Subclasses:
OldAnalyticsService
,OldKeyValueService
,OldQueryService
,OldSearchService
,OldViewService
public abstract class AbstractPoolingService extends AbstractDynamicService
Abstract implementation of a (fixed size) pooling Service.
- Since:
- 1.1.0
- Author:
- Michael Nitschinger
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.couchbase.client.core.service.Service
Service.EndpointFactory
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractPoolingService(String hostname, String bucket, String username, String password, int port, CoreContext ctx, int minEndpoints, int maxEndpoints, SelectionStrategy strategy, Service.EndpointFactory endpointFactory)
-
Method Summary
Modifier and Type Method Description protected void
dispatch(CouchbaseRequest request)
Methods inherited from class com.couchbase.client.core.service.AbstractDynamicService
connect, createEndpoint, diagnostics, disconnect, endpoints, endpointStates, logIdent, mapping, send, whenState
Methods inherited from class com.couchbase.client.core.state.AbstractStateMachine
hasSubscribers, isState, state, states, transitionState
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.couchbase.client.core.state.Stateful
hasSubscribers, isState, state, states
-
Constructor Details
-
AbstractPoolingService
protected AbstractPoolingService(String hostname, String bucket, String username, String password, int port, CoreContext ctx, int minEndpoints, int maxEndpoints, SelectionStrategy strategy, Service.EndpointFactory endpointFactory)
-
-
Method Details
-
dispatch
- Specified by:
dispatch
in classAbstractDynamicService
-