public abstract class AbstractPooledEndpointServiceConfig extends Object implements ServiceConfig
Modifier and Type | Class and Description |
---|---|
static class |
AbstractPooledEndpointServiceConfig.Builder<SELF extends AbstractPooledEndpointServiceConfig.Builder<?>> |
Modifier and Type | Field and Description |
---|---|
static Duration |
DEFAULT_IDLE_TIME
By default, idle pooled endpoints are cleaned up every 4.5 seconds so that
they do not clash with idle socket close attempts by the server.
|
static int |
DEFAULT_MAX_ENDPOINTS
By default, the maximum number of pooled endpoints is 12 per node.
|
static int |
DEFAULT_MIN_ENDPOINTS
By default, pooled endpoints start with 0 so they do not occupy any resources if not needed.
|
Modifier and Type | Method and Description |
---|---|
Duration |
idleTime() |
int |
maxEndpoints() |
int |
minEndpoints() |
boolean |
pipelined() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
exportAsMap
public static final int DEFAULT_MAX_ENDPOINTS
public static final int DEFAULT_MIN_ENDPOINTS
public static final Duration DEFAULT_IDLE_TIME
public int minEndpoints()
minEndpoints
in interface ServiceConfig
public int maxEndpoints()
maxEndpoints
in interface ServiceConfig
public Duration idleTime()
idleTime
in interface ServiceConfig
public boolean pipelined()
pipelined
in interface ServiceConfig
Copyright © 2020 Couchbase, Inc.. All rights reserved.