case class TransactionOptions extends Product with Serializable
Provides all configurable parameters for a single Couchbase transaction.
- Alphabetic
- By Inheritance
- TransactionOptions
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- def durabilityLevel(durabilityLevel: DurabilityLevel): TransactionOptions
Overrides the default durability set, for this transaction.
Overrides the default durability set, for this transaction. The level will be used for all operations inside the transaction.
- durabilityLevel
the durability level to set
- returns
this, for chaining
- def metadataCollection(collection: Collection): TransactionOptions
Allows setting a custom collection to use for any transactional metadata documents created by this transaction.
Allows setting a custom collection to use for any transactional metadata documents created by this transaction.
If not set, it will default to creating these documents in the default collection of the bucket that the first mutated document in the transaction is on.
- def parentSpan(parentSpan: RequestSpan): TransactionOptions
Specifies the RequestSpan that's a parent for this transaction.
Specifies the RequestSpan that's a parent for this transaction.
RequestSpan is a Couchbase Java SDK abstraction over an underlying tracing implementation such as OpenTelemetry or OpenTracing.
- returns
this, for chaining
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def timeout(timeout: Duration): TransactionOptions
Overrides the default timeout set, for this transaction.
Overrides the default timeout set, for this transaction.
- returns
this, for chaining