Package | Description |
---|---|
com.couchbase.client.core.env |
Modifier and Type | Method and Description |
---|---|
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.autoreleaseAfter(long autoreleaseAfter)
Sets the time after which any non-consumed buffers will be automatically released.
|
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.bootstrapCarrierDirectPort(int bootstrapCarrierDirectPort)
If carrier publication bootstrap is enabled and not SSL, sets the port to use (default value ).
|
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.bootstrapCarrierEnabled(boolean bootstrapCarrierEnabled)
Toggles bootstrap via carrier publication (default value ).
|
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.bootstrapCarrierSslPort(int bootstrapCarrierSslPort)
If carrier publication bootstrap and SSL are enabled, sets the port to use (default value ).
|
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.bootstrapHttpDirectPort(int bootstrapHttpDirectPort)
If Http bootstrap is enabled and not SSL, sets the port to use (default value ).
|
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.bootstrapHttpEnabled(boolean bootstrapHttpEnabled)
Toggles bootstrap via Http (default value ).
|
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.bootstrapHttpSslPort(int bootstrapHttpSslPort)
If Http bootstrap and SSL are enabled, sets the port to use (default value ).
|
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.bufferPoolingEnabled(boolean bufferPoolingEnabled)
Forcefully disable buffer pooling by setting the value to false.
|
static DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.builder() |
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.callbacksOnIoPool(boolean callbacksOnIoPool)
Set to true if the
Observable callbacks should be completed on the IO event loops. |
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.certAuthEnabled(boolean certAuthEnabled)
Allows to enable X.509 client certificate authentication.
|
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.computationPoolSize(int computationPoolSize)
Sets the pool size (number of threads to use) for all non blocking operations in the core and clients (default value is the number of CPUs).
|
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.configPollFloorInterval(long configPollFloorInterval)
Allows to set the minimum config polling interval.
|
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.configPollInterval(long configPollInterval)
Allows to set the configuration poll interval which polls the server cluster configuration proactively.
|
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.continuousKeepAliveEnabled(boolean continuousKeepAliveEnabled)
Allows to enable or disable the continous emitting of keepalive messages.
|
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.couchbaseCoreSendHook(CouchbaseCoreSendHook hook)
Allows to configure a custom core send hook, see the javadocs for it for more details.
|
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.defaultMetricsLoggingConsumer(boolean enabled,
CouchbaseLogLevel level) |
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.defaultMetricsLoggingConsumer(boolean enabled,
CouchbaseLogLevel level,
LoggingConsumer.OutputFormat format) |
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.disconnectTimeout(long disconnectTimeout)
Sets a custom disconnect timeout.
|
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.eventBus(EventBus eventBus)
Sets the event bus to an alternative implementation.
|
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.forceSaslPlain(boolean forceSaslPlain)
Allows to forcre the KeyValue SASL authentication method to PLAIN which is used to allow authentication against LDAP-based users.
|
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.ioPool(EventLoopGroup group)
Deprecated.
use
ioPool(EventLoopGroup, ShutdownHook) to also provide a shutdown hook. |
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.ioPool(EventLoopGroup group,
ShutdownHook shutdownHook)
Sets the I/O Pool implementation for the underlying IO framework, along with the action to execute when this environment is shut down.
|
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.ioPoolSize(int ioPoolSize)
Sets the pool size (number of threads to use) for I/O operations (default value is the number of CPUs).
|
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.keepAliveErrorThreshold(long keepAliveErrorThreshold)
Allows to customize the errors on keepalive messages threshold after which the connection will be recycled.
|
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.keepAliveInterval(long keepAliveIntervalMilliseconds)
Sets the time of inactivity, in milliseconds, after which some services will issue a form of keep-alive request to their corresponding server/nodes (default is 30s, values <= 0 deactivate the idle check).
|
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.keepAliveTimeout(long keepAliveTimeout)
Allows to customize the timeout used for keepalive operations.
|
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.keyValueServiceConfig(KeyValueServiceConfig keyValueServiceConfig)
Allows to set a custom configuration for the KV service.
|
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.kvEndpoints(int kvEndpoints)
Deprecated.
Please use
keyValueServiceConfig(KeyValueServiceConfig) going forward. |
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.kvIoPool(EventLoopGroup group,
ShutdownHook shutdownHook)
Sets the KV I/O Pool implementation for the underlying IO framework, along with the action to execute when this environment is shut down.
|
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.maxRequestLifetime(long maxRequestLifetime)
Sets the maximum time in milliseconds a request is allowed to live.
|
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.memcachedHashingStrategy(MemcachedHashingStrategy memcachedHashingStrategy)
Sets a custom memcached node hashing strategy, mainly used for compatibility with other clients.
|
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.mutationTokensEnabled(boolean mutationTokensEnabled)
If mutation tokens are enabled, they can be used for advanced durability requirements, as well as optimized RYOW consistency.
|
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.networkLatencyMetricsCollectorConfig(LatencyMetricsCollectorConfig metricsCollectorConfig)
Sets a custom configuration for the
NetworkLatencyMetricsCollector . |
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.observeIntervalDelay(Delay observeIntervalDelay)
|
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.packageNameAndVersion(String packageNameAndVersion)
Sets the String to be used as identifier for the library namespace and version.
|
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.queryEndpoints(int queryEndpoints)
Deprecated.
Please use
queryServiceConfig(QueryServiceConfig) going forward. |
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.queryIoPool(EventLoopGroup group,
ShutdownHook shutdownHook)
Sets the Query I/O Pool implementation for the underlying IO framework, along with the action to execute when this environment is shut down.
|
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.queryServiceConfig(QueryServiceConfig queryServiceConfig)
Allows to set a custom configuration for the Query service.
|
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.reconnectDelay(Delay reconnectDelay)
Sets the
Delay for node reconnects (default value is a delay growing exponentially between 32ms and 4096ms). |
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.requestBufferSize(int requestBufferSize)
Sets the size of the RingBuffer structure that queues requests (default value ).
|
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.requestBufferWaitStrategy(WaitStrategyFactory waitStrategy)
Sets a custom waiting strategy for requests.
|
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.responseBufferSize(int responseBufferSize)
Sets the size of the RingBuffer structure that queues responses (default value ).
|
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.retryDelay(Delay retryDelay)
Sets the
Delay for retries of requests (default value is a delay growing exponentially between 100us and 100ms). |
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.retryStrategy(RetryStrategy retryStrategy)
Sets the
RetryStrategy to be used during request retries (default value is a BestEffortRetryStrategy ). |
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.runtimeMetricsCollectorConfig(MetricsCollectorConfig metricsCollectorConfig)
Sets a custom configuration for the
RuntimeMetricsCollector . |
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.scheduler(rx.Scheduler scheduler)
Deprecated.
use
ioPool(EventLoopGroup, ShutdownHook) to also provide a shutdown hook. |
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.scheduler(rx.Scheduler scheduler,
ShutdownHook shutdownHook)
Sets the Scheduler implementation for the underlying computation framework, along with the action to execute when this environment is shut down.
|
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.searchEndpoints(int searchEndpoints)
Deprecated.
Please use
searchServiceConfig(SearchServiceConfig) going forward. |
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.searchIoPool(EventLoopGroup group,
ShutdownHook shutdownHook)
Sets the Search I/O Pool implementation for the underlying IO framework, along with the action to execute when this environment is shut down.
|
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.searchServiceConfig(SearchServiceConfig searchServiceConfig)
Allows to set a custom configuration for the Search service.
|
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.socketConnectTimeout(int socketConnectTimeout)
Sets a custom socket connect timeout.
|
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.sslEnabled(boolean sslEnabled)
Set if SSL should be enabled (default value ).
|
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.sslKeystore(KeyStore sslKeystore)
Sets the SSL Keystore directly and not indirectly via filepath.
|
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.sslKeystoreFile(String sslKeystoreFile)
Defines the location of the SSL Keystore file (default value null, none).
|
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.sslKeystorePassword(String sslKeystorePassword)
Sets the SSL Keystore password to be used with the Keystore file (default value null, none).
|
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.sslTruststore(KeyStore sslTruststore)
Sets the SSL Keystore for the TrustStore directly and not indirectly via filepath.
|
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.sslTruststoreFile(String sslTruststoreFile)
Defines the location of the SSL TrustStore keystore file (default value null, none).
|
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.sslTruststorePassword(String sslTruststorePassword)
Sets the SSL TrustStore password to be used with the Keystore file (default value null, none).
|
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.tcpNodelayEnabled(boolean tcpNodelayEnabled)
If TCP_NODELAY is manually disabled, Nagle’ing will take effect on both the client and (if supported) the server side.
|
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.userAgent(String userAgent)
Sets the USER-AGENT String to be sent in HTTP requests headers (should usually not be tweaked, default value is computed from the SDK
DefaultCoreEnvironment.packageNameAndVersion() ). |
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.viewEndpoints(int viewEndpoints)
Deprecated.
Please use
viewServiceConfig(ViewServiceConfig) going forward. |
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.viewIoPool(EventLoopGroup group,
ShutdownHook shutdownHook)
Sets the View I/O Pool implementation for the underlying IO framework, along with the action to execute when this environment is shut down.
|
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.viewServiceConfig(ViewServiceConfig viewServiceConfig)
Allows to set a custom configuration for the View service.
|
Constructor and Description |
---|
DefaultCoreEnvironment(DefaultCoreEnvironment.Builder builder) |
Copyright © 2018 Couchbase, Inc.. All rights reserved.