Class TransactionLinks
java.lang.Object
com.couchbase.client.core.transaction.components.TransactionLinks
Stores the transaction links stored on each document in a transaction
-
Constructor Summary
ConstructorDescriptionTransactionLinks
(Optional<byte[]> stagedContentJson, Optional<byte[]> stagedContentBinary, Optional<String> atrId, Optional<String> atrBucketName, Optional<String> atrScopeName, Optional<String> atrCollectionName, Optional<String> stagedTransactionId, Optional<String> stagedAttemptId, Optional<String> casPreTxn, Optional<String> revidPreTxn, Optional<Long> exptimePreTxn, Optional<String> op, boolean isDeleted, Optional<String> crc32OfStaging, Optional<ForwardCompatibility> forwardCompatibility, Optional<String> stagedOperationId, Optional<Integer> stagedUserFlags) -
Method Summary
-
Constructor Details
-
TransactionLinks
public TransactionLinks(Optional<byte[]> stagedContentJson, Optional<byte[]> stagedContentBinary, Optional<String> atrId, Optional<String> atrBucketName, Optional<String> atrScopeName, Optional<String> atrCollectionName, Optional<String> stagedTransactionId, Optional<String> stagedAttemptId, Optional<String> casPreTxn, Optional<String> revidPreTxn, Optional<Long> exptimePreTxn, Optional<String> op, boolean isDeleted, Optional<String> crc32OfStaging, Optional<ForwardCompatibility> forwardCompatibility, Optional<String> stagedOperationId, Optional<Integer> stagedUserFlags)
-
-
Method Details
-
isDocumentInTransaction
public boolean isDocumentInTransaction()Note this doesn't guarantee an active transaction, as it may have expired and need rolling back. -
isDocumentBeingRemoved
public boolean isDocumentBeingRemoved() -
hasStagedWrite
public boolean hasStagedWrite() -
atrId
-
stagedTransactionId
-
stagedAttemptId
-
stagedContentJsonOrBinary
-
stagedContentBinary
-
stagedContentJson
-
atrBucketName
-
atrScopeName
-
atrCollectionName
-
casPreTxn
-
revidPreTxn
-
exptimePreTxn
-
op
-
isDeleted
public boolean isDeleted() -
crc32OfStaging
The CRC32 from staging the document.It is only available if it has been explicitly fetched. E.g. it will not be present after the mutation (which cannot return this field).
-
forwardCompatibility
-
stagedOperationId
-
stagedUserFlags
-
toString
-
collection
-