public class TransactionResult extends Object
Note that the success or failure of a transaction is determined solely by whether an a TransactionFailedException
exception is thrown by it.
Constructor and Description |
---|
TransactionResult(com.couchbase.client.core.transaction.CoreTransactionResult internal) |
Modifier and Type | Method and Description |
---|---|
List<com.couchbase.client.core.cnc.events.transaction.TransactionLogEvent> |
logs()
An in-memory log is built up during each transaction.
|
Duration |
timeTaken()
Returns the total time taken by a transaction.
|
String |
toString() |
String |
transactionId()
Returns the id of this transaction.
|
boolean |
unstagingComplete()
Returns whether all documents were successfully unstaged (committed).
|
@Stability.Internal public TransactionResult(com.couchbase.client.core.transaction.CoreTransactionResult internal)
public List<com.couchbase.client.core.cnc.events.transaction.TransactionLogEvent> logs()
public Duration timeTaken()
public String transactionId()
public boolean unstagingComplete()
Copyright © 2024 Couchbase, Inc.. All rights reserved.