boundTransaction

fun boundTransaction(connection: Connection, statementMillis: Long? = null, readOnly: Boolean = false)

Bounds the transaction connection has just opened by its network timeout: its statements and its lock waits by serverMillis, its idle time, between two statements, by twice the network timeout. A query's transaction gives its own budget instead (statementMillis) and is readOnly. One round trip, before the transaction's first statement; nothing on a connection without a network timeout that is given neither. A store's own transaction sends them with its first statement instead (inTransaction).