| Modifier and Type | Method and Description |
|---|---|
SpanWrapper |
CoreTransactionContext.span() |
| Modifier and Type | Method and Description |
|---|---|
<T> Mono<T> |
CoreTransactionAttemptContext.doQueryOperation(String lockDebugIn,
String statement,
SpanWrapper pspan,
TriFunction<Integer,AtomicReference<ReactiveLock.Waiter>,SpanWrapper,Mono<T>> op)
Doesn't need everything from doKVOperation, as queryWrapper already centralises a lot of logic
|
Mono<CoreTransactionGetResult> |
CoreTransactionAttemptContext.insert(CollectionIdentifier collection,
String id,
byte[] content,
int flagsToStage,
SpanWrapper pspan)
Inserts a new document into the specified Couchbase
collection. |
Mono<ClassicCoreReactiveQueryResult> |
CoreTransactionAttemptContext.queryWrapperLocked(int sidx,
CoreQueryContext qc,
String statement,
CoreQueryOptions options,
String hookPoint,
boolean isBeginWork,
boolean existingErrorCheck,
com.couchbase.client.core.deps.com.fasterxml.jackson.databind.node.ObjectNode txdata,
com.couchbase.client.core.deps.com.fasterxml.jackson.databind.node.ArrayNode params,
SpanWrapper span,
boolean tximplicit,
AtomicReference<ReactiveLock.Waiter> lockToken,
boolean updateInternalState)
This will return a TransactionOperationFailedException if that's what query returns, else will return the error after
passing through convertQueryError.
|
Mono<Void> |
CoreTransactionAttemptContext.remove(CoreTransactionGetResult doc,
SpanWrapper pspan)
Removes the specified
doc, using the document's last
CoreTransactionGetResult.cas(). |
Mono<CoreTransactionGetResult> |
CoreTransactionAttemptContext.replace(CoreTransactionGetResult doc,
byte[] content,
int flags,
SpanWrapper pspan)
Mutates the specified
doc with new content, using the
document's last CoreTransactionGetResult.cas(). |
| Modifier and Type | Method and Description |
|---|---|
<T> Mono<T> |
CoreTransactionAttemptContext.doQueryOperation(String lockDebugIn,
String statement,
SpanWrapper pspan,
TriFunction<Integer,AtomicReference<ReactiveLock.Waiter>,SpanWrapper,Mono<T>> op)
Doesn't need everything from doKVOperation, as queryWrapper already centralises a lot of logic
|
| Constructor and Description |
|---|
CoreTransactionAttemptContext(Core core,
CoreTransactionContext overall,
CoreMergedTransactionConfig config,
String attemptId,
CoreTransactionsReactive parent,
Optional<SpanWrapper> parentSpan,
CoreTransactionAttemptContextHooks hooks) |
| Modifier and Type | Method and Description |
|---|---|
Mono<SubdocGetResponse> |
ClientRecord.getClientRecord(CollectionIdentifier collection,
SpanWrapper span) |
Flux<TransactionCleanupAttemptEvent> |
LostCleanupDistributed.handleATRCleanup(String bp,
CollectionIdentifier atrCollection,
String atrId,
ActiveTransactionRecordStats stats,
Duration safetyMargin,
SpanWrapper pspan)
Looks at an ATR, finds any expired entries, and cleans them up.
|
Mono<TransactionCleanupAttemptEvent> |
TransactionsCleaner.performCleanup(CleanupRequest req,
boolean isRegularCleanup,
SpanWrapper pspan) |
Mono<ClientRecordDetails> |
ClientRecord.processClient(String clientUuid,
CollectionIdentifier collection,
CoreTransactionsConfig config,
SpanWrapper pspan) |
| Modifier and Type | Method and Description |
|---|---|
<T> SpanWrapper |
SpanWrapper.attribute(String key,
T value) |
static SpanWrapper |
SpanWrapper.create(RequestTracer tracer,
String op,
SpanWrapper parent) |
static SpanWrapper |
SpanWrapperUtil.createOp(CoreTransactionAttemptContext ctx,
RequestTracer tracer,
CollectionIdentifier collection,
String id,
String op,
SpanWrapper attemptSpan) |
<T> SpanWrapper |
SpanWrapper.lowCardinalityAttribute(String key,
T value) |
static SpanWrapper |
SpanWrapperUtil.setAttributes(SpanWrapper out,
CoreTransactionAttemptContext ctx,
CollectionIdentifier collection,
String id) |
| Modifier and Type | Method and Description |
|---|---|
static SpanWrapper |
SpanWrapper.create(RequestTracer tracer,
String op,
SpanWrapper parent) |
static SpanWrapper |
SpanWrapperUtil.createOp(CoreTransactionAttemptContext ctx,
RequestTracer tracer,
CollectionIdentifier collection,
String id,
String op,
SpanWrapper attemptSpan) |
static SpanWrapper |
SpanWrapperUtil.setAttributes(SpanWrapper out,
CoreTransactionAttemptContext ctx,
CollectionIdentifier collection,
String id) |
| 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 |
|---|---|
static Mono<InsertResponse> |
TransactionKVHandler.insert(Core core,
CollectionIdentifier collectionIdentifier,
String id,
byte[] transcodedContent,
int flags,
Duration timeout,
Optional<DurabilityLevel> durabilityLevel,
Map<String,Object> clientContext,
SpanWrapper pspan) |
static Mono<SubdocGetResponse> |
TransactionKVHandler.lookupIn(Core core,
CollectionIdentifier collectionIdentifier,
String id,
Duration timeout,
boolean accessDeleted,
Map<String,Object> clientContext,
SpanWrapper pspan,
List<SubdocGetRequest.Command> commands) |
static Mono<SubdocMutateResponse> |
TransactionKVHandler.mutateIn(Core core,
CollectionIdentifier collectionIdentifier,
String id,
Duration timeout,
boolean insertDocument,
boolean upsertDocument,
boolean reviveDocument,
boolean accessDeleted,
boolean createAsDeleted,
long cas,
int userFlags,
Optional<DurabilityLevel> durabilityLevel,
Map<String,Object> clientContext,
SpanWrapper span,
List<SubdocMutateRequest.Command> commands) |
static Mono<SubdocMutateResponse> |
TransactionKVHandler.mutateIn(Core core,
CollectionIdentifier collectionIdentifier,
String id,
Duration timeout,
boolean insertDocument,
boolean upsertDocument,
boolean reviveDocument,
boolean accessDeleted,
boolean createAsDeleted,
long cas,
int userFlags,
Optional<DurabilityLevel> durabilityLevel,
Map<String,Object> clientContext,
SpanWrapper pspan,
List<SubdocMutateRequest.Command> commands,
CoreTransactionLogger logger) |
static Mono<RemoveResponse> |
TransactionKVHandler.remove(Core core,
CollectionIdentifier collectionIdentifier,
String id,
Duration timeout,
long cas,
Optional<DurabilityLevel> durabilityLevel,
Map<String,Object> clientContext,
SpanWrapper pspan) |
| 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.