Package org.tmatesoft.sqljet.core.table
Class SqlJetTimeoutBusyHandler
java.lang.Object
org.tmatesoft.sqljet.core.table.SqlJetTimeoutBusyHandler
- All Implemented Interfaces:
ISqlJetBusyHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
call
(int number) Callback which implements busy handler.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
SqlJetTimeoutBusyHandler
public SqlJetTimeoutBusyHandler(int timeout)
-
-
Method Details
-
call
public boolean call(int number) Description copied from interface:ISqlJetBusyHandler
Callback which implements busy handler.
To method call() is passed number of retry to obtain database lock. If call() returns true then retries to locking still continue. If call() returns false then will be thrown
SqlJetException
withSqlJetErrorCode.BUSY
.- Specified by:
call
in interfaceISqlJetBusyHandler
- Parameters:
number
- number of retry to obtain lock on database.- Returns:
- true if retries will continue or false if retries will stop.
-