Package-level declarations
Types
A functional interface for calculating the delay before a transaction is retried due to deadlock.
A BackoffStrategy that implements binary exponential backoff. It returns a delay between 0
and 2**c - 1
inclusive, where c
is the attempt number (starting at 1 for the delay after the first attempt). c
is clamped at cMax. The delay is scaled by scale milliseconds.
A thin layer on top of the JDBC API that enforces the use of transactions, automatically retrying them on deadlock, and provides coroutine integration.
A functional interface for checking if an SQLException represents a deadlock. There is no standard mechanism for representing deadlock errors, so vendor-specific implementations are required.
A vendor-neutral DeadlockDetector, which considers every SQLException to be a deadlock. One of the vendor-specific implementations should be used if possible, which will prevent non-deadlock errors (such as unique constraint violations) from being needlessly retried.
A BackoffStrategy with a fixed delay.
A DeadlockDetector implementation for H2.
A DeadlockDetector implementation for MySQL and MariaDB.
A DeadlockDetector implementation for PostgreSQL.
A DeadlockDetector implementation for SQLite.
A functional interface representing a single database transation.