Class TransactionsCleanupConfig
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddCollection
(TransactionKeyspace collection) Deprecated.addCollections
(Collection<TransactionKeyspace> collections) Deprecated.Instead of creating a new builder, please useTransactionsConfig.Builder.cleanupConfig(Consumer)
and configure the builder passed to the consumer.builder()
Deprecated.Instead of creating a new builder, please useTransactionsConfig.Builder.cleanupConfig(Consumer)
and configure the builder passed to the consumer.cleanupClientAttempts
(boolean cleanupClientAttempts) Deprecated.Instead of creating a new builder, please useTransactionsConfig.Builder.cleanupConfig(Consumer)
and configure the builder passed to the consumer.cleanupLostAttempts
(boolean cleanupLostAttempts) Deprecated.Instead of creating a new builder, please useTransactionsConfig.Builder.cleanupConfig(Consumer)
and configure the builder passed to the consumer.cleanupWindow
(Duration cleanupWindow) Deprecated.Instead of creating a new builder, please useTransactionsConfig.Builder.cleanupConfig(Consumer)
and configure the builder passed to the consumer.
-
Constructor Details
-
TransactionsCleanupConfig
public TransactionsCleanupConfig()
-
-
Method Details
-
builder
Deprecated.Instead of creating a new builder, please useTransactionsConfig.Builder.cleanupConfig(Consumer)
and configure the builder passed to the consumer. -
cleanupClientAttempts
@Deprecated public static TransactionsCleanupConfig.Builder cleanupClientAttempts(boolean cleanupClientAttempts) Deprecated.Instead of creating a new builder, please useTransactionsConfig.Builder.cleanupConfig(Consumer)
and configure the builder passed to the consumer.Controls where a background thread is created to cleanup any transaction attempts made by this client.The default is true and users should generally not change this: cleanup is an essential part of Couchbase transactions.
-
cleanupLostAttempts
@Deprecated public static TransactionsCleanupConfig.Builder cleanupLostAttempts(boolean cleanupLostAttempts) Deprecated.Instead of creating a new builder, please useTransactionsConfig.Builder.cleanupConfig(Consumer)
and configure the builder passed to the consumer.Controls where a background process is created to cleanup any 'lost' transaction attempts.The default is true and users should generally not change this: cleanup is an essential part of Couchbase transactions.
-
cleanupWindow
Deprecated.Instead of creating a new builder, please useTransactionsConfig.Builder.cleanupConfig(Consumer)
and configure the builder passed to the consumer.Part of the lost attempts background cleanup process. Specifies the window during which the cleanup process is sure to discover all lost transactions.The default setting of 60 seconds is tuned to balance how quickly such transactions are discovered, while minimising impact on the cluster. If the application would prefer to discover lost transactions more swiftly, but at the cost of increased impact, it can feel free to reduce this parameter.
-
addCollection
@Deprecated public static TransactionsCleanupConfig.Builder addCollection(TransactionKeyspace collection) Deprecated.Instead of creating a new builder, please useTransactionsConfig.Builder.cleanupConfig(Consumer)
and configure the builder passed to the consumer.Adds a collection to the set of metadata collections that will be cleaned up automatically.This will also start cleanup immediately rather than on the first transaction (unless cleanup has been explicitly disabled.)
-
addCollections
@Deprecated public TransactionsCleanupConfig.Builder addCollections(Collection<TransactionKeyspace> collections) Deprecated.Instead of creating a new builder, please useTransactionsConfig.Builder.cleanupConfig(Consumer)
and configure the builder passed to the consumer.Also note that this is an instance method, but was intended to be static.
Adds collections to the set of metadata collections that will be cleaned up automatically.Collections will be added automatically to this 'cleanup set' as transactions are performed, so generally an application will not need to change this.
Setting this parameter will also start cleanup immediately rather than on the first transaction.
-
TransactionsConfig.Builder.cleanupConfig(Consumer)
and configure the builder passed to the consumer.