Modifier and Type | Method and Description |
---|---|
CoreTransactionAttemptContext |
CoreTransactionsReactive.createAttemptContext(CoreTransactionContext overall,
CoreMergedTransactionConfig config,
String attemptId) |
Mono<CoreTransactionResult> |
CoreTransactionsReactive.executeTransaction(Mono<CoreTransactionAttemptContext> createAttempt,
CoreMergedTransactionConfig config,
CoreTransactionContext overall,
Function<CoreTransactionAttemptContext,Mono<Void>> transactionLogic,
boolean singleQueryTransactionMode)
The main transactions 'engine', responsible for attempting the transaction logic as many times as required,
until the transaction commits, is explicitly rolled back, or expires.
|
Constructor and Description |
---|
CoreTransactionAttemptContext(Core core,
CoreTransactionContext overall,
CoreMergedTransactionConfig config,
String attemptId,
CoreTransactionsReactive parent,
Optional<SpanWrapper> parentSpan,
CoreTransactionAttemptContextHooks hooks) |
CoreTransactionContext(CoreContext coreContext,
String transactionId,
CoreMergedTransactionConfig config,
CoreTransactionsCleanup cleanup) |
Modifier and Type | Method and Description |
---|---|
CoreTransactionAttemptContext |
TransactionAttemptContextFactory.create(Core core,
CoreTransactionContext overall,
CoreMergedTransactionConfig config,
String attemptId,
CoreTransactionsReactive parent,
Optional<SpanWrapper> parentSpan) |
Modifier and Type | Method and Description |
---|---|
CoreTransactionAttemptContext |
TestTransactionAttemptContextFactory.create(Core core,
CoreTransactionContext overall,
CoreMergedTransactionConfig config,
String attemptId,
CoreTransactionsReactive parent,
Optional<SpanWrapper> parentSpan) |
Copyright © 2024 Couchbase, Inc.. All rights reserved.