public final class KeyValueServiceConfig extends AbstractServiceConfig
DEFAULT_IDLE_TIME, NO_IDLE_TIME
Modifier and Type | Method and Description |
---|---|
static KeyValueServiceConfig |
create(int endpoints)
Creates a new configuration for the KV service.
|
String |
toString() |
checkIdleTime, idleTime, isPipelined, maxEndpoints, minEndpoints
public static KeyValueServiceConfig create(int endpoints)
DefaultCoreEnvironment.KEYVALUE_ENDPOINTS
provides the best performance. If the load is very spiky and comes in batches, then
increasing the number of endpoints can help to "drain the pipe" faster but comes
at the cost of keeping more connections open.endpoints
- the number of endpoints (sockets) per node, fixed.KeyValueServiceConfig
.public String toString()
toString
in class AbstractServiceConfig
Copyright © 2018 Couchbase, Inc.. All rights reserved.