summaryrefslogtreecommitdiffstats
path: root/sql/src/main/java/SQLite/BusyHandler.java
blob: c39b39dd044414422b706e235f842ce37d0f1f6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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);
}