Package com.couchbase.client.core.env
Class IoConfig
java.lang.Object
com.couchbase.client.core.env.IoConfig
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Durationstatic final Durationstatic final booleanstatic final StorageSizestatic final Durationstatic final StorageSizestatic final intstatic final MemcachedHashingStrategystatic final booleanstatic final NetworkResolutionstatic final intstatic final booleanstatic final Duration -
Method Summary
Modifier and TypeMethodDescriptionstatic IoConfig.BuilderanalyticsCircuitBreakerConfig(CircuitBreakerConfig.Builder analyticsCircuitBreakerConfig) Deprecated.This method creates a new builder.static IoConfig.BuilderbackupCircuitBreakerConfig(CircuitBreakerConfig.Builder backupCircuitBreakerConfig) Deprecated.This method creates a new builder.static IoConfig.Builderbuilder()Deprecated.Instead of creating a new builder, please useCoreEnvironment.Builder.ioConfig(Consumer)and configure the builder passed to the consumer.static IoConfig.BuildercaptureTraffic(ServiceType... serviceTypes) Deprecated.This method creates a new builder.static IoConfig.BuilderconfigIdleRedialTimeout(Duration configIdleRedialTimeout) Deprecated.This method creates a new builder.static IoConfig.BuilderconfigPollInterval(Duration configPollInterval) Deprecated.This method creates a new builder.static IoConfigcreate()Deprecated.Instead, please useCoreEnvironment.Builder.ioConfig(Consumer)and configure the builder passed to the consumer.booleanstatic IoConfig.BuilderenableDnsSrv(boolean dnsSrvEnabled) Deprecated.This method creates a new builder.static IoConfig.BuilderenableMutationTokens(boolean mutationTokensEnabled) Deprecated.This method creates a new builder.static IoConfig.BuilderenableTcpKeepAlives(boolean tcpKeepAliveEnabled) Deprecated.This method creates a new builder.static IoConfig.BuildereventingCircuitBreakerConfig(CircuitBreakerConfig.Builder eventingCircuitBreakerConfig) Deprecated.This method creates a new builder.static IoConfig.BuilderidleHttpConnectionTimeout(Duration idleHttpConnectionTimeout) Deprecated.This method creates a new builder.static IoConfig.BuilderkvCircuitBreakerConfig(CircuitBreakerConfig.Builder kvCircuitBreakerConfig) Deprecated.This method creates a new builder.static IoConfig.BuildermanagerCircuitBreakerConfig(CircuitBreakerConfig.Builder managerCircuitBreakerConfig) Deprecated.This method creates a new builder.intstatic IoConfig.BuildermaxHttpConnections(int maxHttpConnections) Deprecated.This method creates a new builder.static IoConfig.BuildermemcachedHashingStrategy(MemcachedHashingStrategy memcachedHashingStrategy) Deprecated.This method creates a new builder.booleanstatic IoConfig.BuildernetworkResolution(NetworkResolution networkResolution) Deprecated.This method creates a new builder.intstatic IoConfig.BuildernumKvConnections(int numKvConnections) Deprecated.This method creates a new builder.static IoConfig.BuilderqueryCircuitBreakerConfig(CircuitBreakerConfig.Builder queryCircuitBreakerConfig) Deprecated.This method creates a new builder.@Nullable StorageSizestatic IoConfig.BuildersearchCircuitBreakerConfig(CircuitBreakerConfig.Builder searchCircuitBreakerConfig) Deprecated.This method creates a new builder.@Nullable StorageSizeLists the services on which traffic should be captured.booleanstatic IoConfig.BuildertcpKeepAliveTime(Duration tcpKeepAliveTime) Deprecated.This method creates a new builder.static IoConfig.BuilderviewCircuitBreakerConfig(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
-
DEFAULT_LOW_WATER_MARK
-
DEFAULT_HIGH_WATER_MARK
-
-
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.Builderfor 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
MemcachedHashingStrategyshould 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, theSdk2CompatibleMemcachedHashingStrategymust 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 defaultStandardMemcachedHashingStrategyby default.- Parameters:
memcachedHashingStrategy- the strategy to use.- Returns:
- this
IoConfig.Builderfor 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
-
lowWaterMark
-
highWaterMark
-
sendBuffer
-
receiveBuffer
-