Uses of Class
com.couchbase.client.core.transaction.support.SpanWrapper
Packages that use SpanWrapper
Package
Description
-
Uses of SpanWrapper in com.couchbase.client.core.transaction
Methods in com.couchbase.client.core.transaction that return SpanWrapperMethods in com.couchbase.client.core.transaction with parameters of type SpanWrapperModifier and TypeMethodDescription<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 logicCoreTransactionAttemptContext.insert(CollectionIdentifier collection, String id, byte[] content, int flagsToStage, SpanWrapper pspan) Inserts a new document into the specified Couchbasecollection.CoreTransactionAttemptContext.insert(CollectionIdentifier collection, String id, byte[] content, SpanWrapper pspan) Deprecated.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.CoreTransactionAttemptContext.remove(CoreTransactionGetResult doc, SpanWrapper pspan) Removes the specifieddoc, using the document's lastCoreTransactionGetResult.cas().CoreTransactionAttemptContext.replace(CoreTransactionGetResult doc, byte[] content, int flags, SpanWrapper pspan) Mutates the specifieddocwith new content, using the document's lastCoreTransactionGetResult.cas().CoreTransactionAttemptContext.replace(CoreTransactionGetResult doc, byte[] content, SpanWrapper pspan) Deprecated.in favor ofCoreTransactionAttemptContext.replace(CoreTransactionGetResult, byte[], int, SpanWrapper)which takes an additional 'flags' argument.Method parameters in com.couchbase.client.core.transaction with type arguments of type SpanWrapperModifier and TypeMethodDescription<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 logicConstructor parameters in com.couchbase.client.core.transaction with type arguments of type SpanWrapperModifierConstructorDescriptionCoreTransactionAttemptContext(Core core, CoreTransactionContext overall, CoreMergedTransactionConfig config, String attemptId, CoreTransactionsReactive parent, Optional<SpanWrapper> parentSpan, CoreTransactionAttemptContextHooks hooks) -
Uses of SpanWrapper in com.couchbase.client.core.transaction.cleanup
Methods in com.couchbase.client.core.transaction.cleanup with parameters of type SpanWrapperModifier and TypeMethodDescriptionClientRecord.getClientRecord(CollectionIdentifier collection, SpanWrapper span) 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.TransactionsCleaner.performCleanup(CleanupRequest req, boolean isRegularCleanup, SpanWrapper pspan) ClientRecord.processClient(String clientUuid, CollectionIdentifier collection, CoreTransactionsConfig config, SpanWrapper pspan) -
Uses of SpanWrapper in com.couchbase.client.core.transaction.components
Methods in com.couchbase.client.core.transaction.components with parameters of type SpanWrapperModifier and TypeMethodDescriptionstatic Mono<Optional<ActiveTransactionRecordEntry>>ActiveTransactionRecord.findEntryForTransaction(Core core, CollectionIdentifier atrCollection, String atrId, String attemptId, CoreMergedTransactionConfig config, SpanWrapper pspan, CoreTransactionLogger logger) static Mono<Optional<ActiveTransactionRecordEntry>>ActiveTransactionRecord.findEntryForTransaction(Core core, CollectionIdentifier atrCollection, String atrId, String attemptId, CoreMergedTransactionConfig config, SpanWrapper pspan, CoreTransactionLogger logger, MeteringUnits.MeteringUnitsBuilder units) static Mono<Optional<CoreTransactionGetResult>>DocumentGetter.getAsync(Core core, CoreTransactionLogger LOGGER, CollectionIdentifier collection, CoreMergedTransactionConfig config, String docId, String byAttemptId, boolean justReturn, SpanWrapper span, Optional<String> resolvingMissingATREntry, MeteringUnits.MeteringUnitsBuilder units) static Mono<Optional<ActiveTransactionRecords>>ActiveTransactionRecord.getAtr(Core core, CollectionIdentifier atrCollection, String atrId, Duration timeout, SpanWrapper pspan) TXNJ-13: Get the ATR.DocumentGetter.justGetDoc(Core core, CollectionIdentifier collection, String docId, Duration timeout, SpanWrapper span, boolean accessDeleted, CoreTransactionLogger logger, MeteringUnits.MeteringUnitsBuilder units) -
Uses of SpanWrapper in com.couchbase.client.core.transaction.support
Methods in com.couchbase.client.core.transaction.support that return SpanWrapperModifier and TypeMethodDescription<T> SpanWrapperstatic SpanWrapperSpanWrapper.create(RequestTracer tracer, String op, SpanWrapper parent) static SpanWrapperSpanWrapperUtil.createOp(CoreTransactionAttemptContext ctx, RequestTracer tracer, CollectionIdentifier collection, String id, String op, SpanWrapper attemptSpan) <T> SpanWrapperSpanWrapper.lowCardinalityAttribute(String key, T value) static SpanWrapperSpanWrapperUtil.setAttributes(SpanWrapper out, CoreTransactionAttemptContext ctx, CollectionIdentifier collection, String id) Methods in com.couchbase.client.core.transaction.support with parameters of type SpanWrapperModifier and TypeMethodDescriptionstatic SpanWrapperSpanWrapper.create(RequestTracer tracer, String op, SpanWrapper parent) static SpanWrapperSpanWrapperUtil.createOp(CoreTransactionAttemptContext ctx, RequestTracer tracer, CollectionIdentifier collection, String id, String op, SpanWrapper attemptSpan) static SpanWrapperSpanWrapperUtil.setAttributes(SpanWrapper out, CoreTransactionAttemptContext ctx, CollectionIdentifier collection, String id) Method parameters in com.couchbase.client.core.transaction.support with type arguments of type SpanWrapperModifier and TypeMethodDescriptionTransactionAttemptContextFactory.create(Core core, CoreTransactionContext overall, CoreMergedTransactionConfig config, String attemptId, CoreTransactionsReactive parent, Optional<SpanWrapper> parentSpan) -
Uses of SpanWrapper in com.couchbase.client.core.transaction.util
Methods in com.couchbase.client.core.transaction.util with parameters of type SpanWrapperModifier and TypeMethodDescriptionstatic 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) Method parameters in com.couchbase.client.core.transaction.util with type arguments of type SpanWrapperModifier and TypeMethodDescriptionTestTransactionAttemptContextFactory.create(Core core, CoreTransactionContext overall, CoreMergedTransactionConfig config, String attemptId, CoreTransactionsReactive parent, Optional<SpanWrapper> parentSpan)
CoreTransactionAttemptContext.insert(CollectionIdentifier, String, byte[], int, SpanWrapper)which takes an additional 'flags' argument.