Class AbstractPooledEndpointServiceConfig
java.lang.Object
com.couchbase.client.core.service.AbstractPooledEndpointServiceConfig
- All Implemented Interfaces:
ServiceConfig
- Direct Known Subclasses:
AnalyticsServiceConfig,QueryServiceConfig,SearchServiceConfig,ViewServiceConfig
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAbstractPooledEndpointServiceConfig.Builder<SELF extends AbstractPooledEndpointServiceConfig.Builder<?>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DurationBy default, idle pooled endpoints are cleaned up every second so that they do not clash with idle socket close attempts by the server.static final intBy default, the maximum number of pooled endpoints is 12 per node.static final intBy default, pooled endpoints start with 0 so they do not occupy any resources if not needed. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.couchbase.client.core.service.ServiceConfig
exportAsMap
-
Field Details
-
DEFAULT_MAX_ENDPOINTS
public static final int DEFAULT_MAX_ENDPOINTSBy default, the maximum number of pooled endpoints is 12 per node.- See Also:
-
DEFAULT_MIN_ENDPOINTS
public static final int DEFAULT_MIN_ENDPOINTSBy default, pooled endpoints start with 0 so they do not occupy any resources if not needed.- See Also:
-
DEFAULT_IDLE_TIME
By default, idle pooled endpoints are cleaned up every second so that they do not clash with idle socket close attempts by the server.
-
-
Method Details
-
minEndpoints
public int minEndpoints()- Specified by:
minEndpointsin interfaceServiceConfig
-
maxEndpoints
public int maxEndpoints()- Specified by:
maxEndpointsin interfaceServiceConfig
-
idleTime
- Specified by:
idleTimein interfaceServiceConfig
-
pipelined
public boolean pipelined()- Specified by:
pipelinedin interfaceServiceConfig
-
toString
-