Class TransactionsQueryConfig
java.lang.Object
com.couchbase.client.java.transactions.config.TransactionsQueryConfig
Allows setting a default query configuration for all transactions.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Deprecated.scanConsistency
(QueryScanConsistency scanConsistency) Deprecated.Instead of creating a new builder, please useTransactionsConfig.Builder.queryConfig(Consumer)
and configure the builder passed to the consumer.
-
Method Details
-
builder
Deprecated.Instead of creating a new builder, please useTransactionsConfig.Builder.queryConfig(Consumer)
and configure the builder passed to the consumer.Returns a newTransactionsQueryConfig.Builder
. -
scanConsistency
@Deprecated public static TransactionsQueryConfig.Builder scanConsistency(QueryScanConsistency scanConsistency) Deprecated.Instead of creating a new builder, please useTransactionsConfig.Builder.queryConfig(Consumer)
and configure the builder passed to the consumer.Customizes the default consistency guarantees for all queries inside this transaction.Tuning the scan consistency allows to trade data "freshness" for latency and vice versa. By default
QueryScanConsistency.REQUEST_PLUS
is used for any queries inside a transaction, which means that the indexer will wait until any indexes used are consistent with all mutations at the time of the query. If this level of consistency is not required, useQueryScanConsistency.NOT_BOUNDED
which will execute the query immediately with whatever data are in the index.- Parameters:
scanConsistency
- the index scan consistency to be used.- Returns:
- a builder with the value set
-
TransactionsConfig.Builder.queryConfig(Consumer)
and configure the builder passed to the consumer.