TransactionManagerApi

Represents the manager registered to a database, which is responsible for creating new transactions and storing data related to the database and its transactions.

Properties

Link copied to clipboard
abstract var defaultMaxAttempts: Int

The default maximum amount of attempts that will be made to perform a transaction.

Link copied to clipboard

The default maximum number of milliseconds to wait before retrying a transaction if an exception is thrown.

Link copied to clipboard

The default minimum number of milliseconds to wait before retrying a transaction if an exception is thrown.

Link copied to clipboard
abstract var defaultReadOnly: Boolean

Whether transactions should be performed in read-only mode. Unless specified, the database default will be used.

Functions

Link copied to clipboard
abstract fun bindTransactionToThread(transaction: Transaction?)

Sets the current thread's copy of the manager's thread-local variable to the specified transaction.

Link copied to clipboard
abstract fun currentOrNull(): Transaction?

Returns the current Transaction, or null if none exists.