1417deb1db112103aff04231b6ca79772ff7d3a21Elliott Hughespackage SQLite; 2417deb1db112103aff04231b6ca79772ff7d3a21Elliott Hughes 3417deb1db112103aff04231b6ca79772ff7d3a21Elliott Hughes/** 4417deb1db112103aff04231b6ca79772ff7d3a21Elliott Hughes * Callback interface for SQLite's user defined busy handler. 5417deb1db112103aff04231b6ca79772ff7d3a21Elliott Hughes */ 6417deb1db112103aff04231b6ca79772ff7d3a21Elliott Hughes 7417deb1db112103aff04231b6ca79772ff7d3a21Elliott Hughespublic interface BusyHandler { 8417deb1db112103aff04231b6ca79772ff7d3a21Elliott Hughes 9417deb1db112103aff04231b6ca79772ff7d3a21Elliott Hughes /** 10417deb1db112103aff04231b6ca79772ff7d3a21Elliott Hughes * Invoked when a table is locked by another process 11417deb1db112103aff04231b6ca79772ff7d3a21Elliott Hughes * or thread. The method should return true for waiting 12417deb1db112103aff04231b6ca79772ff7d3a21Elliott Hughes * until the table becomes unlocked, or false in order 13417deb1db112103aff04231b6ca79772ff7d3a21Elliott Hughes * to abandon the action.<BR><BR> 14417deb1db112103aff04231b6ca79772ff7d3a21Elliott Hughes * 15417deb1db112103aff04231b6ca79772ff7d3a21Elliott Hughes * @param table the name of the locked table 16417deb1db112103aff04231b6ca79772ff7d3a21Elliott Hughes * @param count number of times the table was locked 17417deb1db112103aff04231b6ca79772ff7d3a21Elliott Hughes */ 18417deb1db112103aff04231b6ca79772ff7d3a21Elliott Hughes 19417deb1db112103aff04231b6ca79772ff7d3a21Elliott Hughes public boolean busy(String table, int count); 20417deb1db112103aff04231b6ca79772ff7d3a21Elliott Hughes} 21