liquibase.lock
Class LockHandler
java.lang.Object
liquibase.lock.LockHandler
public class LockHandler
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static LockHandler getInstance(Database database)
acquireLock
public boolean acquireLock()
throws LockException
- Throws:
LockException
releaseLock
public void releaseLock()
throws LockException
- Throws:
LockException
listLocks
public DatabaseChangeLogLock[] listLocks()
throws LockException
- Throws:
LockException
waitForLock
public void waitForLock()
throws LockException
- Throws:
LockException
forceReleaseLock
public void forceReleaseLock()
throws LockException,
JDBCException
- Releases whatever locks are on the database change log table
- Throws:
LockException
JDBCException
reset
public void reset()
- Clears information the lock handler knows about the tables. Should only be called by LiquiBase internal calls