mirror of
https://github.com/berkeleydb/libdb.git
synced 2024-11-17 01:26:25 +00:00
20 lines
516 B
Java
20 lines
516 B
Java
package SQLite;
|
|
|
|
/**
|
|
* Callback interface for SQLite's user defined busy handler.
|
|
*/
|
|
|
|
public interface BusyHandler {
|
|
|
|
/**
|
|
* Invoked when a table is locked by another process
|
|
* or thread. The method should return true for waiting
|
|
* until the table becomes unlocked, or false in order
|
|
* to abandon the action.<BR><BR>
|
|
*
|
|
* @param table the name of the locked table
|
|
* @param count number of times the table was locked
|
|
*/
|
|
|
|
public boolean busy(String table, int count);
|
|
}
|