public final class AnalyticsServiceConfig extends AbstractServiceConfig
DEFAULT_IDLE_TIME, NO_IDLE_TIME
Modifier and Type | Method and Description |
---|---|
static AnalyticsServiceConfig |
create(int minEndpoints,
int maxEndpoints)
Creates a
AnalyticsServiceConfig with the default idle time. |
static AnalyticsServiceConfig |
create(int minEndpoints,
int maxEndpoints,
int idleTime)
Creates a
AnalyticsServiceConfig with a custom idle time. |
String |
toString() |
checkIdleTime, idleTime, isPipelined, maxEndpoints, minEndpoints
public static AnalyticsServiceConfig create(int minEndpoints, int maxEndpoints)
AnalyticsServiceConfig
with the default idle time.
This constructor creates a config with the AbstractServiceConfig.DEFAULT_IDLE_TIME
. It allows to configure
both the minimum number of endpoints per node to be present at every point in time as well
as the allowed maximum.
If an endpoint is idle longer than the configured idle time and the service pool does not
fall below the configured minimum, it is removed from the pool.minEndpoints
- minimum number of endpoints to be usedmaxEndpoints
- maximum number of endpoints to be usedAnalyticsServiceConfig
.public static AnalyticsServiceConfig create(int minEndpoints, int maxEndpoints, int idleTime)
AnalyticsServiceConfig
with a custom idle time.
This constructor creates a config with a custom idle timeout. It allows to configure
both the minimum number of endpoints per node to be present at every point in time as well
as the allowed maximum.
If an endpoint is idle longer than the configured idle time and the service pool does not
fall below the configured minimum, it is removed from the pool.minEndpoints
- minimum number of endpoints to be usedmaxEndpoints
- maximum number of endpoints to be usedidleTime
- the configured idle timeAnalyticsServiceConfig
.public String toString()
toString
in class AbstractServiceConfig
Copyright © 2019 Couchbase, Inc.. All rights reserved.