Documentation of 'org.tmatesoft.sqljet.core.table.ISqlJetBusyHandler' Java class
ISqlJetBusyHandler
org.tmatesoft.sqljet.core.table

Interface ISqlJetBusyHandler

  • All Known Implementing Classes:
    SqlJetBusyHandler, SqlJetDefaultBusyHandler, SqlJetTimeoutBusyHandler


    public interface ISqlJetBusyHandler

    Busy handler interface.

    Busy handler are used to implement some behavior on database locking if database is locked already by other thread or process. 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 with SqlJetErrorCode.BUSY.

    • Method Detail

      • call

        boolean call(int number)

        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 with SqlJetErrorCode.BUSY.

        Parameters:
        number - number of retry to obtain lock on database.
        Returns:
        true if retries will continue or false if retries will stop.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.