public abstract class BusyHandler extends Object
Constructor and Description |
---|
BusyHandler() |
Modifier and Type | Method and Description |
---|---|
protected abstract int |
callback(int nbPrevInvok)
https://www.sqlite.org/c3ref/busy_handler.html
|
static void |
clearHandler(Connection conn)
Clears any busy handler registered with the connection.
|
static void |
setHandler(Connection conn,
BusyHandler busyHandler)
Sets a busy handler for the connection.
|
public static final void setHandler(Connection conn, BusyHandler busyHandler) throws SQLException
conn
- the SQLite connectionbusyHandler
- the busyHandlerSQLException
public static final void clearHandler(Connection conn) throws SQLException
conn
- the SQLite connectionSQLException
protected abstract int callback(int nbPrevInvok) throws SQLException
nbPrevInvok
- number of times that the busy handler has been invoked previously for the same locking eventSQLException
Copyright © 2019. All rights reserved.