SuspensionDiagnosticRegistry

internal class SuspensionDiagnosticRegistry(pid: Int, run: String, clockMillis: () -> Long, emit: (String) -> Unit, capacity: Int = DEFAULT_REGISTRY_CAPACITY, eventLimitPerSecond: Int = DEFAULT_EVENT_LIMIT)

No filesystem operation, SQL operation or emitter runs while lock is held.

Constructors

Link copied to clipboard
constructor(pid: Int, run: String, clockMillis: () -> Long, emit: (String) -> Unit, capacity: Int = DEFAULT_REGISTRY_CAPACITY, eventLimitPerSecond: Int = DEFAULT_EVENT_LIMIT)

Functions

Link copied to clipboard
fun abandoned(token: Long)
Link copied to clipboard
fun acquired(token: Long, result: Int, error: Int)
Link copied to clipboard
fun beginDatabaseOperation(kind: String, operation: String): Long
Link copied to clipboard
fun beginLock(kind: String, operation: String, descriptor: Int): Long
Link copied to clipboard
fun closed(token: Long, result: Int, error: Int)
Link copied to clipboard
fun endDatabaseOperation(token: Long, outcome: String)
Link copied to clipboard
fun setBackgrounded(value: Boolean)
Link copied to clipboard
fun snapshot(stage: String)
Link copied to clipboard
fun unlocked(token: Long, result: Int, error: Int)