Back to Exposed

R2dbcTransactionManager

docs/api/exposed-r2dbc/org.jetbrains.exposed.v1.r2dbc.transactions/-r2dbc-transaction-manager/index.html

1.2.03.0 KB
Original Source

R2dbcTransactionManager

interface R2dbcTransactionManager : TransactionManagerApi

Interface for R2DBC transaction managers, responsible for creating and managing R2DBC transactions.

Implement this interface to create custom transaction managers.

Inheritors

TransactionManager

MembersMembers & Extensions

Properties

db

Link copied to clipboard

abstract val db: R2dbcDatabase

The database instance associated with this transaction manager.

defaultIsolationLevel

Link copied to clipboard

abstract var defaultIsolationLevel: IsolationLevel?

The default transaction isolation level. Unless specified, the database-specific level will be used.

defaultMaxAttempts

Link copied to clipboard

abstract var defaultMaxAttempts: Int

defaultMaxRetryDelay

Link copied to clipboard

abstract var defaultMaxRetryDelay: Long

defaultMinRetryDelay

Link copied to clipboard

abstract var defaultMinRetryDelay: Long

defaultReadOnly

Link copied to clipboard

abstract var defaultReadOnly: Boolean

Functions

currentOrNull

Link copied to clipboard

fun R2dbcTransactionManager.currentOrNull(): R2dbcTransaction?

Returns the current R2DBC transaction from the thread-local stack for this manager's database, or null if none exists.

newTransaction

Link copied to clipboard

abstract fun newTransaction(isolation: IsolationLevel? = defaultIsolationLevel, readOnly: Boolean? = defaultReadOnly, outerTransaction: R2dbcTransaction? = null): R2dbcTransaction

Returns an R2dbcTransaction instance.

Generated by Dokka © 2026 Copyright