| Package | Description |
|---|---|
| com.couchbase.client.dcp |
| Modifier and Type | Method and Description |
|---|---|
Client.Builder |
Client.Builder.authenticator(Authenticator authenticator) |
Client.Builder |
Client.Builder.bootstrapTimeout(Duration bootstrapTimeout)
Time to wait for first configuration during bootstrap.
|
Client.Builder |
Client.Builder.bucket(String bucket)
The name of the bucket to use.
|
Client.Builder |
Client.Builder.bufferAckWatermark(int watermark)
The buffer acknowledge watermark in percent.
|
static Client.Builder |
Client.builder() |
Client.Builder |
Client.Builder.collectionIds(Collection<Long> collectionIds)
Configures the client to stream only from the collections identified by the given IDs.
|
Client.Builder |
Client.Builder.collectionIds(long... collectionIds)
Configures the client to stream only from the collections identified by the given IDs.
|
Client.Builder |
Client.Builder.collectionNames(Collection<String> qualifiedCollectionNames) |
Client.Builder |
Client.Builder.collectionNames(String... qualifiedCollectionNames) |
Client.Builder |
Client.Builder.collectionsAware(boolean enable)
Controls whether the client operates in collections-aware mode (defaults to false).
|
Client.Builder |
Client.Builder.compression(CompressionMode compressionMode)
Sets the compression mode for message values sent by Couchbase Server.
|
Client.Builder |
Client.Builder.configRefreshInterval(Duration configRefreshInterval)
When connecting to versions of Couchbase Server older than 5.5,
the DCP client polls the server for cluster topology config changes
at the specified interval.
|
static Client.Builder |
Client.configure()
Deprecated.
in favor of
Client.builder() |
Client.Builder |
Client.Builder.connectionNameGenerator(ConnectionNameGenerator connectionNameGenerator)
If specific names for DCP connections should be generated, a custom one can be provided.
|
Client.Builder |
Client.Builder.connectionString(String connectionString)
Connection string to bootstrap with.
|
Client.Builder |
Client.Builder.controlParam(DcpControl.Names name,
Object value)
Set all kinds of DCP control params - check their description for more information.
|
Client.Builder |
Client.Builder.credentials(String username,
String password) |
Client.Builder |
Client.Builder.credentialsProvider(CredentialsProvider credentialsProvider) |
Client.Builder |
Client.Builder.dcpChannelsReconnectDelay(Delay ignored)
Deprecated.
Doesn't do anything.
|
Client.Builder |
Client.Builder.dcpChannelsReconnectMaxAttempts(int dcpChannelsReconnectMaxAttempts)
The maximum number of reconnect attempts for DCP channels
|
Client.Builder |
Client.Builder.eventBus(EventBus eventBus)
Sets the event bus to an alternative implementation.
|
Client.Builder |
Client.Builder.eventLoopGroup(io.netty.channel.EventLoopGroup eventLoopGroup)
Sets a custom event loop group.
|
Client.Builder |
Client.Builder.flowControl(int bufferSizeInBytes)
Enables
flow control with the specified buffer size (in bytes) and a reasonable
default buffer ACK threshold.
|
Client.Builder |
Client.Builder.hostnames(List<String> addresses)
Deprecated.
use
seedNodes(Collection) instead. |
Client.Builder |
Client.Builder.hostnames(String... addresses)
Deprecated.
use
seedNodes(String...) instead. |
Client.Builder |
Client.Builder.meterRegistry(io.micrometer.core.instrument.MeterRegistry meterRegistry)
Specifies the registry the client should use when tracking metrics.
|
Client.Builder |
Client.Builder.mitigateRollbacks(long persistencePollingInterval,
TimeUnit unit)
Enables rollback mitigation with the specified persistence polling interval.
|
Client.Builder |
Client.Builder.networkResolution(NetworkResolution nr)
Network selection strategy for connecting to clusters whose nodes have alternate hostnames.
|
Client.Builder |
Client.Builder.noValue(boolean noValue)
If the argument is true, configures the client to receive only
document keys and metadata (no contents).
|
Client.Builder |
Client.Builder.poolBuffers(boolean pool)
If buffer pooling should be enabled (yes by default).
|
Client.Builder |
Client.Builder.scopeId(long scopeId)
Configures the client to stream only from the scope identified by the given ID.
|
Client.Builder |
Client.Builder.scopeName(String scopeName)
Configures the client to stream only from the scope identified by the given ID.
|
Client.Builder |
Client.Builder.securityConfig(SecurityConfig.Builder securityConfigBuilder)
Sets the TLS configutation options (from a builder, for convenience)
|
Client.Builder |
Client.Builder.securityConfig(SecurityConfig securityConfig)
Sets the TLS configutation options
|
Client.Builder |
Client.Builder.seedNodes(Collection<String> addresses)
Sets the addresses of the Couchbase Server nodes to bootstrap against.
|
Client.Builder |
Client.Builder.seedNodes(String... addresses)
Sets the addresses of the Couchbase Server nodes to bootstrap against.
|
Client.Builder |
Client.Builder.socketConnectTimeout(long socketConnectTimeout)
Sets a custom socket connect timeout.
|
Client.Builder |
Client.Builder.userAgent(String productName,
String productVersion,
String... comments)
Sets the product information to include in the DCP client's User Agent
string.
|
Client.Builder |
Client.Builder.xattrs(boolean xattrs)
If the argument is true, configures the client to receive
extended attributes (XATTRS).
|
Copyright © 2021 Couchbase, Inc.. All rights reserved.