Package com.couchbase.client.core.env
Class IoConfig
java.lang.Object
com.couchbase.client.core.env.IoConfig
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Duration
static final Duration
static final boolean
static final Duration
static final int
static final MemcachedHashingStrategy
static final boolean
static final NetworkResolution
static final int
static final boolean
static final Duration
-
Method Summary
Modifier and TypeMethodDescriptionstatic IoConfig.Builder
analyticsCircuitBreakerConfig
(CircuitBreakerConfig.Builder analyticsCircuitBreakerConfig) Deprecated.This method creates a new builder.static IoConfig.Builder
backupCircuitBreakerConfig
(CircuitBreakerConfig.Builder backupCircuitBreakerConfig) Deprecated.This method creates a new builder.static IoConfig.Builder
builder()
Deprecated.Instead of creating a new builder, please useCoreEnvironment.Builder.ioConfig(Consumer)
and configure the builder passed to the consumer.static IoConfig.Builder
captureTraffic
(ServiceType... serviceTypes) Deprecated.This method creates a new builder.static IoConfig.Builder
configIdleRedialTimeout
(Duration configIdleRedialTimeout) Deprecated.This method creates a new builder.static IoConfig.Builder
configPollInterval
(Duration configPollInterval) Deprecated.This method creates a new builder.static IoConfig
create()
Deprecated.Instead, please useCoreEnvironment.Builder.ioConfig(Consumer)
and configure the builder passed to the consumer.boolean
static IoConfig.Builder
enableDnsSrv
(boolean dnsSrvEnabled) Deprecated.This method creates a new builder.static IoConfig.Builder
enableMutationTokens
(boolean mutationTokensEnabled) Deprecated.This method creates a new builder.static IoConfig.Builder
enableTcpKeepAlives
(boolean tcpKeepAliveEnabled) Deprecated.This method creates a new builder.static IoConfig.Builder
eventingCircuitBreakerConfig
(CircuitBreakerConfig.Builder eventingCircuitBreakerConfig) Deprecated.This method creates a new builder.static IoConfig.Builder
idleHttpConnectionTimeout
(Duration idleHttpConnectionTimeout) Deprecated.This method creates a new builder.static IoConfig.Builder
kvCircuitBreakerConfig
(CircuitBreakerConfig.Builder kvCircuitBreakerConfig) Deprecated.This method creates a new builder.static IoConfig.Builder
managerCircuitBreakerConfig
(CircuitBreakerConfig.Builder managerCircuitBreakerConfig) Deprecated.This method creates a new builder.int
static IoConfig.Builder
maxHttpConnections
(int maxHttpConnections) Deprecated.This method creates a new builder.static IoConfig.Builder
memcachedHashingStrategy
(MemcachedHashingStrategy memcachedHashingStrategy) Deprecated.This method creates a new builder.boolean
static IoConfig.Builder
networkResolution
(NetworkResolution networkResolution) Deprecated.This method creates a new builder.int
static IoConfig.Builder
numKvConnections
(int numKvConnections) Deprecated.This method creates a new builder.static IoConfig.Builder
queryCircuitBreakerConfig
(CircuitBreakerConfig.Builder queryCircuitBreakerConfig) Deprecated.This method creates a new builder.static IoConfig.Builder
searchCircuitBreakerConfig
(CircuitBreakerConfig.Builder searchCircuitBreakerConfig) Deprecated.This method creates a new builder.Lists the services on which traffic should be captured.boolean
static IoConfig.Builder
tcpKeepAliveTime
(Duration tcpKeepAliveTime) Deprecated.This method creates a new builder.static IoConfig.Builder
viewCircuitBreakerConfig
(CircuitBreakerConfig.Builder viewCircuitBreakerConfig) Deprecated.This method creates a new builder.
-
Field Details
-
DEFAULT_MUTATION_TOKENS_ENABLED
public static final boolean DEFAULT_MUTATION_TOKENS_ENABLED- See Also:
-
DEFAULT_DNS_SRV_ENABLED
public static final boolean DEFAULT_DNS_SRV_ENABLED- See Also:
-
DEFAULT_TCP_KEEPALIVE_ENABLED
public static final boolean DEFAULT_TCP_KEEPALIVE_ENABLED- See Also:
-
DEFAULT_TCP_KEEPALIVE_TIME
-
DEFAULT_CONFIG_POLL_INTERVAL
-
DEFAULT_NETWORK_RESOLUTION
-
DEFAULT_NUM_KV_CONNECTIONS
public static final int DEFAULT_NUM_KV_CONNECTIONS- See Also:
-
DEFAULT_MAX_HTTP_CONNECTIONS
public static final int DEFAULT_MAX_HTTP_CONNECTIONS- See Also:
-
DEFAULT_IDLE_HTTP_CONNECTION_TIMEOUT
-
DEFAULT_CONFIG_IDLE_REDIAL_TIMEOUT
-
DEFAULT_MEMCACHED_HASHING_STRATEGY
-
-
Method Details
-
create
Deprecated.Instead, please useCoreEnvironment.Builder.ioConfig(Consumer)
and configure the builder passed to the consumer. Note: CoreEnvironment is a base class; you'll probably call that method via a subclass namedClusterEnvironment
. -
builder
Deprecated.Instead of creating a new builder, please useCoreEnvironment.Builder.ioConfig(Consumer)
and configure the builder passed to the consumer. Note: CoreEnvironment is a base class; you'll probably call that method via a subclass namedClusterEnvironment
. -
enableMutationTokens
Deprecated.This method creates a new builder. Please see the deprecation notice onbuilder()
. -
enableDnsSrv
Deprecated.This method creates a new builder. Please see the deprecation notice onbuilder()
. -
configPollInterval
Deprecated.This method creates a new builder. Please see the deprecation notice onbuilder()
. -
kvCircuitBreakerConfig
@Deprecated public static IoConfig.Builder kvCircuitBreakerConfig(CircuitBreakerConfig.Builder kvCircuitBreakerConfig) Deprecated.This method creates a new builder. Please see the deprecation notice onbuilder()
. -
queryCircuitBreakerConfig
@Deprecated public static IoConfig.Builder queryCircuitBreakerConfig(CircuitBreakerConfig.Builder queryCircuitBreakerConfig) Deprecated.This method creates a new builder. Please see the deprecation notice onbuilder()
. -
viewCircuitBreakerConfig
@Deprecated public static IoConfig.Builder viewCircuitBreakerConfig(CircuitBreakerConfig.Builder viewCircuitBreakerConfig) Deprecated.This method creates a new builder. Please see the deprecation notice onbuilder()
. -
searchCircuitBreakerConfig
@Deprecated public static IoConfig.Builder searchCircuitBreakerConfig(CircuitBreakerConfig.Builder searchCircuitBreakerConfig) Deprecated.This method creates a new builder. Please see the deprecation notice onbuilder()
. -
analyticsCircuitBreakerConfig
@Deprecated public static IoConfig.Builder analyticsCircuitBreakerConfig(CircuitBreakerConfig.Builder analyticsCircuitBreakerConfig) Deprecated.This method creates a new builder. Please see the deprecation notice onbuilder()
. -
managerCircuitBreakerConfig
@Deprecated public static IoConfig.Builder managerCircuitBreakerConfig(CircuitBreakerConfig.Builder managerCircuitBreakerConfig) Deprecated.This method creates a new builder. Please see the deprecation notice onbuilder()
. -
eventingCircuitBreakerConfig
@Deprecated public static IoConfig.Builder eventingCircuitBreakerConfig(CircuitBreakerConfig.Builder eventingCircuitBreakerConfig) Deprecated.This method creates a new builder. Please see the deprecation notice onbuilder()
. -
backupCircuitBreakerConfig
@Deprecated @Volatile public static IoConfig.Builder backupCircuitBreakerConfig(CircuitBreakerConfig.Builder backupCircuitBreakerConfig) Deprecated.This method creates a new builder. Please see the deprecation notice onbuilder()
. -
captureTraffic
Deprecated.This method creates a new builder. Please see the deprecation notice onbuilder()
.Captures the traffic for all services provided as an argument (all if empty).IMPORTANT: It is not enough to just enable traffic capturing, also TRACE level logging needs to be enabled for the couchbase namespace in your logger implementation.
Note that this flag should only be enabled during development and for debugging purposes. When enabled it will add more overhead due to traffic parsing, logging and analysis.
- Returns:
- this
IoConfig.Builder
for chaining purposes.
-
networkResolution
Deprecated.This method creates a new builder. Please see the deprecation notice onbuilder()
. -
enableTcpKeepAlives
Deprecated.This method creates a new builder. Please see the deprecation notice onbuilder()
. -
tcpKeepAliveTime
Deprecated.This method creates a new builder. Please see the deprecation notice onbuilder()
. -
numKvConnections
Deprecated.This method creates a new builder. Please see the deprecation notice onbuilder()
. -
maxHttpConnections
Deprecated.This method creates a new builder. Please see the deprecation notice onbuilder()
. -
idleHttpConnectionTimeout
@Deprecated public static IoConfig.Builder idleHttpConnectionTimeout(Duration idleHttpConnectionTimeout) Deprecated.This method creates a new builder. Please see the deprecation notice onbuilder()
. -
configIdleRedialTimeout
@Deprecated public static IoConfig.Builder configIdleRedialTimeout(Duration configIdleRedialTimeout) Deprecated.This method creates a new builder. Please see the deprecation notice onbuilder()
. -
memcachedHashingStrategy
@Deprecated public static IoConfig.Builder memcachedHashingStrategy(MemcachedHashingStrategy memcachedHashingStrategy) Deprecated.This method creates a new builder. Please see the deprecation notice onbuilder()
.Allows to customize the hashing strategy for memcached buckets.Usually the
MemcachedHashingStrategy
should only be customized if i.e. the SDK is upgraded from Java SDK 2 and the documents in the bucket must be preserved. In this case, theSdk2CompatibleMemcachedHashingStrategy
must be chosen. If it is used though, keep in mind that it is not compatible with other SDKs, so we always recommend to use the defaultStandardMemcachedHashingStrategy
by default.- Parameters:
memcachedHashingStrategy
- the strategy to use.- Returns:
- this
IoConfig.Builder
for chaining purposes.
-
kvCircuitBreakerConfig
-
queryCircuitBreakerConfig
-
viewCircuitBreakerConfig
-
searchCircuitBreakerConfig
-
analyticsCircuitBreakerConfig
-
managerCircuitBreakerConfig
-
eventingCircuitBreakerConfig
-
backupCircuitBreakerConfig
-
mutationTokensEnabled
public boolean mutationTokensEnabled() -
dnsSrvEnabled
public boolean dnsSrvEnabled() -
configPollInterval
-
servicesToCapture
Lists the services on which traffic should be captured.- Returns:
- the services to capture traffic from, if present.
-
networkResolution
-
tcpKeepAlivesEnabled
public boolean tcpKeepAlivesEnabled() -
tcpKeepAliveTime
-
numKvConnections
public int numKvConnections() -
maxHttpConnections
public int maxHttpConnections() -
idleHttpConnectionTimeout
-
configIdleRedialTimeout
-
memcachedHashingStrategy
-
timerConfig
-