Class ActiveTransactionRecordEntry
java.lang.Object
com.couchbase.client.core.transaction.components.ActiveTransactionRecordEntry
-
Constructor Summary
ConstructorDescriptionActiveTransactionRecordEntry
(String atrBucket, String atrId, String attemptId, Optional<String> transactionId, AttemptState state, Optional<Long> timestampStartMillis, Optional<Long> timestampCommitMillis, Optional<Long> timestampCompleteMillis, Optional<Long> timestampRollBackMillis, Optional<Long> timestampRolledBackMillis, Optional<Integer> expiresAfterMillis, Optional<List<DocRecord>> insertedIds, Optional<List<DocRecord>> replacedIds, Optional<List<DocRecord>> removedIds, long cas, Optional<ForwardCompatibility> forwardCompatibility, Optional<DurabilityLevel> durabilityLevel) -
Method Summary
Modifier and TypeMethodDescriptionlong
atrId()
long
cas()
Returns the CAS of the ATR documenting containing this entryboolean
boolean
hasExpired
(long safetyMarginMillis) boolean
hasExpired
(long casInMillis, long txnExpiresAfterMillis) state()
toString()
This was added with {ExtTransactionId}
-
Constructor Details
-
ActiveTransactionRecordEntry
public ActiveTransactionRecordEntry(String atrBucket, String atrId, String attemptId, Optional<String> transactionId, AttemptState state, Optional<Long> timestampStartMillis, Optional<Long> timestampCommitMillis, Optional<Long> timestampCompleteMillis, Optional<Long> timestampRollBackMillis, Optional<Long> timestampRolledBackMillis, Optional<Integer> expiresAfterMillis, Optional<List<DocRecord>> insertedIds, Optional<List<DocRecord>> replacedIds, Optional<List<DocRecord>> removedIds, long cas, Optional<ForwardCompatibility> forwardCompatibility, Optional<DurabilityLevel> durabilityLevel)
-
-
Method Details
-
hasExpired
public boolean hasExpired() -
hasExpired
public boolean hasExpired(long safetyMarginMillis) -
hasExpired
public boolean hasExpired(long casInMillis, long txnExpiresAfterMillis) -
ageMillis
public long ageMillis() -
atrId
-
attemptId
-
transactionId
This was added with {ExtTransactionId} -
state
-
timestampStartMillis
-
cas
public long cas()Returns the CAS of the ATR documenting containing this entry -
insertedIds
-
replacedIds
-
removedIds
-
expiresAfterMillis
-
forwardCompatibility
-
durabilityLevel
-
toString
-