Class CoreTransactionResult
- java.lang.Object
-
- com.couchbase.client.core.transaction.CoreTransactionResult
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CoreTransactionLoggerlog()An in-memory log is built up during each transaction.DurationtimeTaken()Returns the total time taken by a transaction.StringtoString()StringtransactionId()Returns the id of this transaction.booleanunstagingComplete()Returns whether all documents were successfully unstaged (committed).
-
-
-
Method Detail
-
log
public CoreTransactionLogger log()
An in-memory log is built up during each transaction. The application may want to write this to their own logs, for example upon transaction failure.
-
timeTaken
public Duration timeTaken()
Returns the total time taken by a transaction.
-
transactionId
public String transactionId()
Returns the id of this transaction.
-
unstagingComplete
public boolean unstagingComplete()
Returns whether all documents were successfully unstaged (committed). This will only return true if the transaction reached the COMMIT point and then went on to reach the COMPLETE point. It will be false for transactions that: - Rolled back - Were read-only
-
-