TransactionResult

class TransactionResult<V>

Holds the value returned by the transaction lambda, as well as debugging and logging facilities for tracking what happened during the transaction.

Note that the success or failure of a transaction is determined solely by whether it threw a TransactionFailedException.

Parameters

V

The type of value returned by the transaction lambda

Functions

Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
val logs: List<TransactionLogEvent>

The in-memory log built up during each transaction. The application may want to write this to their own logs, for example upon transaction failure.

Link copied to clipboard
val timeTaken: Duration

Total time taken by a transaction.

Link copied to clipboard
val transactionId: String

The ID of this transaction.

Link copied to clipboard
val unstagingComplete: Boolean

Indicates whether all documents were successfully unstaged (committed).

Link copied to clipboard
val value: V

The value returned by the transaction lambda