@Stability.Internal public class TransactionLinks extends Object
| Constructor and Description |
|---|
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) |
| Modifier and Type | Method and Description |
|---|---|
Optional<String> |
atrBucketName() |
Optional<String> |
atrCollectionName() |
Optional<String> |
atrId() |
Optional<String> |
atrScopeName() |
Optional<String> |
casPreTxn() |
CollectionIdentifier |
collection() |
Optional<String> |
crc32OfStaging()
The CRC32 from staging the document.
|
Optional<Long> |
exptimePreTxn() |
Optional<ForwardCompatibility> |
forwardCompatibility() |
boolean |
hasStagedWrite() |
boolean |
isDeleted() |
boolean |
isDocumentBeingRemoved() |
boolean |
isDocumentInTransaction()
Note this doesn't guarantee an active transaction, as it may have expired and need rolling back.
|
Optional<String> |
op() |
Optional<String> |
revidPreTxn() |
Optional<String> |
stagedAttemptId() |
Optional<byte[]> |
stagedContentBinary() |
Optional<byte[]> |
stagedContentJson() |
Optional<byte[]> |
stagedContentJsonOrBinary() |
Optional<String> |
stagedOperationId() |
Optional<String> |
stagedTransactionId() |
Optional<Integer> |
stagedUserFlags() |
String |
toString() |
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)
public boolean isDocumentInTransaction()
public boolean isDocumentBeingRemoved()
public boolean hasStagedWrite()
@Stability.Internal public Optional<byte[]> stagedContentJsonOrBinary()
@Stability.Internal public Optional<byte[]> stagedContentBinary()
@Stability.Internal public Optional<byte[]> stagedContentJson()
public boolean isDeleted()
public Optional<String> crc32OfStaging()
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).
public Optional<ForwardCompatibility> forwardCompatibility()
public CollectionIdentifier collection()
Copyright © 2024 Couchbase, Inc.. All rights reserved.