Package liquibase.lockservice
Interface LockService
-
- All Superinterfaces:
PrioritizedService
- All Known Implementing Classes:
LockServiceImpl,MockLockService,OfflineLockService,StandardLockService
public interface LockService extends PrioritizedService
-
-
Field Summary
-
Fields inherited from interface liquibase.servicelocator.PrioritizedService
COMPARATOR, PRIORITY_DATABASE, PRIORITY_DEFAULT
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanacquireLock()voiddestroy()voidforceReleaseLock()Releases whatever locks are on the database change log tablebooleanhasChangeLogLock()voidinit()DatabaseChangeLogLock[]listLocks()voidreleaseLock()voidreset()Clears information the lock handler knows about the tables.voidsetChangeLogLockRecheckTime(long changeLogLockRecheckTime)voidsetChangeLogLockWaitTime(long changeLogLockWaitTime)voidsetDatabase(Database database)booleansupports(Database database)voidwaitForLock()-
Methods inherited from interface liquibase.servicelocator.PrioritizedService
getPriority
-
-
-
-
Method Detail
-
supports
boolean supports(Database database)
-
setDatabase
void setDatabase(Database database)
-
setChangeLogLockWaitTime
void setChangeLogLockWaitTime(long changeLogLockWaitTime)
-
setChangeLogLockRecheckTime
void setChangeLogLockRecheckTime(long changeLogLockRecheckTime)
-
hasChangeLogLock
boolean hasChangeLogLock()
-
waitForLock
void waitForLock() throws LockException- Throws:
LockException
-
acquireLock
boolean acquireLock() throws LockException- Throws:
LockException
-
releaseLock
void releaseLock() throws LockException- Throws:
LockException
-
listLocks
DatabaseChangeLogLock[] listLocks() throws LockException
- Throws:
LockException
-
forceReleaseLock
void forceReleaseLock() throws LockException, DatabaseExceptionReleases whatever locks are on the database change log table- Throws:
LockExceptionDatabaseException
-
reset
void reset()
Clears information the lock handler knows about the tables. Should only be called by Liquibase internal calls
-
init
void init() throws DatabaseException
- Throws:
DatabaseException
-
destroy
void destroy() throws DatabaseException- Throws:
DatabaseException
-
-