Class ActiveTransactionRecord
java.lang.Object
com.couchbase.client.core.transaction.components.ActiveTransactionRecord
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ActiveTransactionRecordEntry
createFrom
(String atrBucket, String atrId, com.couchbase.client.core.deps.com.fasterxml.jackson.databind.JsonNode entry, String attemptId, long cas) static Mono<Optional<ActiveTransactionRecordEntry>>
findEntryForTransaction
(Core core, CollectionIdentifier atrCollection, String atrId, String attemptId, CoreMergedTransactionConfig config, SpanWrapper pspan, CoreTransactionLogger logger) static Mono<Optional<ActiveTransactionRecordEntry>>
findEntryForTransaction
(Core core, CollectionIdentifier atrCollection, String atrId, String attemptId, CoreMergedTransactionConfig config, SpanWrapper pspan, CoreTransactionLogger logger, MeteringUnits.MeteringUnitsBuilder units) static Mono<Optional<ActiveTransactionRecords>>
getAtr
(Core core, CollectionIdentifier atrCollection, String atrId, Duration timeout, SpanWrapper pspan) TXNJ-13: Get the ATR.static long
processDocumentIdArray
(com.couchbase.client.core.deps.com.fasterxml.jackson.databind.JsonNode array)
-
Method Details
-
findEntryForTransaction
public static Mono<Optional<ActiveTransactionRecordEntry>> findEntryForTransaction(Core core, CollectionIdentifier atrCollection, String atrId, String attemptId, CoreMergedTransactionConfig config, @Nullable SpanWrapper pspan, @Nullable CoreTransactionLogger logger) -
findEntryForTransaction
public static Mono<Optional<ActiveTransactionRecordEntry>> findEntryForTransaction(Core core, CollectionIdentifier atrCollection, String atrId, String attemptId, CoreMergedTransactionConfig config, @Nullable SpanWrapper pspan, @Nullable CoreTransactionLogger logger, @Nullable MeteringUnits.MeteringUnitsBuilder units) -
createFrom
public static ActiveTransactionRecordEntry createFrom(String atrBucket, String atrId, com.couchbase.client.core.deps.com.fasterxml.jackson.databind.JsonNode entry, String attemptId, long cas) -
processDocumentIdArray
-
parseMutationCAS
-
parseMutationCASField
-
getAtr
public static Mono<Optional<ActiveTransactionRecords>> getAtr(Core core, CollectionIdentifier atrCollection, String atrId, Duration timeout, @Nullable SpanWrapper pspan) TXNJ-13: Get the ATR. The ATR's CAS will be as though a mutation had just been performed on that document. Note that MB-35388 only provides one-second granularity.
-