Class CoreTransactionContext
java.lang.Object
com.couchbase.client.core.transaction.CoreTransactionContext
Stores some context related to a transaction.
This is an immutable value class.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCoreTransactionContext
(CoreContext coreContext, String transactionId, CoreMergedTransactionConfig config, CoreTransactionsCleanup cleanup) -
Method Summary
Modifier and TypeMethodDescriptioncleanup()
void
boolean
void
void
incrementRetryAttempts
(Duration lastRetryDuration, RetryReason reason) int
span()
long
long
timeSinceStartOfTransactionsMillis
(long now)
-
Field Details
-
LOGGER
-
-
Constructor Details
-
CoreTransactionContext
public CoreTransactionContext(CoreContext coreContext, String transactionId, CoreMergedTransactionConfig config, CoreTransactionsCleanup cleanup)
-
-
Method Details
-
expirationTime
-
timeSinceStartOfTransactionsMillis
public long timeSinceStartOfTransactionsMillis(long now) -
hasExpiredClientSide
public boolean hasExpiredClientSide() -
transactionId
-
startTimeClient
public long startTimeClient() -
span
-
numAttempts
public int numAttempts() -
incAttempts
public void incAttempts() -
cleanup
-
incrementRetryAttempts
-
finish
-
supported
-