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.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.dcpConnectionBufferAckThreshold(double dcpConnectionBufferAckThreshold)
When a DCP connection read bytes reaches this percentage of the
dcpConnectionBufferSize , a DCP Buffer Acknowledge message is sent to the server to signal producer how much data has been processed. |
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.dcpConnectionBufferSize(int dcpConnectionBufferSize)
Sets the size of the buffer to control speed of DCP producer.
|
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.dcpConnectionName(String dcpConnectionName)
Sets default name for DCP connection.
|
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.dcpEnabled(boolean dcpEnabled)
Set if DCP should be enabled (only makes sense with server versions >= 3.0.0, default ).
|
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.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.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.kvEndpoints(int kvEndpoints)
Sets the number of Key/Value endpoints to open per nodes in the cluster (default value ).
|
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)
Sets the number of Query (N1QL) endpoints to open per node in the cluster (default value ).
|
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(Scheduler scheduler)
Deprecated.
use
ioPool(EventLoopGroup, ShutdownHook) to also provide a shutdown hook. |
DefaultCoreEnvironment.Builder |
DefaultCoreEnvironment.Builder.scheduler(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)
Sets the number of Search (CBFT) endpoints to open per node in the cluster (default value ).
|
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.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)
Sets the number of View endpoints to open per node in the cluster (default value ).
|
Constructor and Description |
---|
DefaultCoreEnvironment(DefaultCoreEnvironment.Builder builder) |
Copyright © 2016 Couchbase, Inc.. All rights reserved.