Package liquibase.lockservice
Class OfflineLockService
java.lang.Object
liquibase.lockservice.OfflineLockService
- All Implemented Interfaces:
LockService,PrioritizedService
-
Field Summary
Fields inherited from interface liquibase.servicelocator.PrioritizedService
COMPARATOR, PRIORITY_DATABASE, PRIORITY_DEFAULT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoiddestroy()voidReleases whatever locks are on the database change log tableintbooleanvoidinit()voidvoidreset()Clears information the lock handler knows about the tables.voidsetChangeLogLockRecheckTime(long changeLogLockRecheckTime) voidsetChangeLogLockWaitTime(long changeLogLockWaitTime) voidsetDatabase(Database database) booleanvoid
-
Constructor Details
-
OfflineLockService
public OfflineLockService()
-
-
Method Details
-
getPriority
public int getPriority()- Specified by:
getPriorityin interfacePrioritizedService
-
supports
- Specified by:
supportsin interfaceLockService
-
init
- Specified by:
initin interfaceLockService- Throws:
DatabaseException
-
setDatabase
- Specified by:
setDatabasein interfaceLockService
-
setChangeLogLockWaitTime
public void setChangeLogLockWaitTime(long changeLogLockWaitTime) - Specified by:
setChangeLogLockWaitTimein interfaceLockService
-
setChangeLogLockRecheckTime
public void setChangeLogLockRecheckTime(long changeLogLockRecheckTime) - Specified by:
setChangeLogLockRecheckTimein interfaceLockService
-
hasChangeLogLock
public boolean hasChangeLogLock()- Specified by:
hasChangeLogLockin interfaceLockService
-
waitForLock
- Specified by:
waitForLockin interfaceLockService- Throws:
LockException
-
acquireLock
- Specified by:
acquireLockin interfaceLockService- Throws:
LockException
-
releaseLock
- Specified by:
releaseLockin interfaceLockService- Throws:
LockException
-
listLocks
- Specified by:
listLocksin interfaceLockService- Throws:
LockException
-
forceReleaseLock
Description copied from interface:LockServiceReleases whatever locks are on the database change log table- Specified by:
forceReleaseLockin interfaceLockService- Throws:
LockExceptionDatabaseException
-
reset
public void reset()Description copied from interface:LockServiceClears information the lock handler knows about the tables. Should only be called by Liquibase internal calls- Specified by:
resetin interfaceLockService
-
destroy
- Specified by:
destroyin interfaceLockService- Throws:
DatabaseException
-