liquibase.lockservice
Class LockServiceImpl
java.lang.Object
liquibase.lockservice.LockServiceImpl
- All Implemented Interfaces:
- LockService, PrioritizedService
public class LockServiceImpl
- extends Object
- implements LockService
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOCK_WAIT_TIME_SYSTEM_PROPERTY
public static final String LOCK_WAIT_TIME_SYSTEM_PROPERTY
- See Also:
- Constant Field Values
LockServiceImpl
public LockServiceImpl()
getPriority
public int getPriority()
- Specified by:
getPriority in interface PrioritizedService
supports
public boolean supports(Database database)
- Specified by:
supports in interface LockService
setDatabase
public void setDatabase(Database database)
- Specified by:
setDatabase in interface LockService
setChangeLogLockWaitTime
public void setChangeLogLockWaitTime(long changeLogLockWaitTime)
- Specified by:
setChangeLogLockWaitTime in interface LockService
setChangeLogLockRecheckTime
public void setChangeLogLockRecheckTime(long changeLogLocRecheckTime)
- Specified by:
setChangeLogLockRecheckTime in interface LockService
hasChangeLogLock
public boolean hasChangeLogLock()
- Specified by:
hasChangeLogLock in interface LockService
waitForLock
public void waitForLock()
throws LockException
- Specified by:
waitForLock in interface LockService
- Throws:
LockException
acquireLock
public boolean acquireLock()
throws LockException
- Specified by:
acquireLock in interface LockService
- Throws:
LockException
releaseLock
public void releaseLock()
throws LockException
- Specified by:
releaseLock in interface LockService
- Throws:
LockException
listLocks
public DatabaseChangeLogLock[] listLocks()
throws LockException
- Specified by:
listLocks in interface LockService
- Throws:
LockException
forceReleaseLock
public void forceReleaseLock()
throws LockException,
DatabaseException
- Description copied from interface:
LockService
- Releases whatever locks are on the database change log table
- Specified by:
forceReleaseLock in interface LockService
- Throws:
LockException
DatabaseException
reset
public void reset()
- Description copied from interface:
LockService
- Clears information the lock handler knows about the tables. Should only be called by Liquibase internal calls
- Specified by:
reset in interface LockService
Copyright © 2013 Liquibase.org. All Rights Reserved.