@Stability.Volatile public class TransactionInsertOptions extends Object
Modifier and Type | Class and Description |
---|---|
class |
TransactionInsertOptions.Built |
Modifier and Type | Field and Description |
---|---|
static TransactionInsertOptions |
DEFAULT |
Modifier and Type | Method and Description |
---|---|
TransactionInsertOptions.Built |
build() |
static TransactionInsertOptions |
transactionInsertOptions() |
TransactionInsertOptions |
transcoder(Transcoder transcoder)
Specify a custom
Transcoder that is used to encode the content. |
public static final TransactionInsertOptions DEFAULT
public static TransactionInsertOptions transactionInsertOptions()
@SinceCouchbase(value="7.6.2") public TransactionInsertOptions transcoder(Transcoder transcoder)
Transcoder
that is used to encode the content.
If not-specified, the ClusterEnvironment
's JsonSerializer
(NOT transcoder) is used.
It is marked as being available from 7.6.2 because prior to this, only JSON documents were supported in transactions. This release added support for binary documents.
transcoder
- the custom transcoder that should be used for encoding.@Stability.Internal public TransactionInsertOptions.Built build()
Copyright © 2024 Couchbase, Inc.. All rights reserved.