DeadlockDetector

fun interface DeadlockDetector

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.

The Database class already examines the entire Throwable.cause and SQLException.next chain, so implementations only need to examine the individual SQLException passed to them.

Inheritors

Functions

Link copied to clipboard
abstract fun isDeadlock(ex: SQLException): Boolean

Determines whether the SQLException was caused by a deadlock or not.