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 boolean
acquireLock()
void
destroy()
void
forceReleaseLock()
Releases whatever locks are on the database change log tableboolean
hasChangeLogLock()
void
init()
DatabaseChangeLogLock[]
listLocks()
void
releaseLock()
void
reset()
Clears information the lock handler knows about the tables.void
setChangeLogLockRecheckTime(long changeLogLockRecheckTime)
void
setChangeLogLockWaitTime(long changeLogLockWaitTime)
void
setDatabase(Database database)
boolean
supports(Database database)
void
waitForLock()
-
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, DatabaseException
Releases whatever locks are on the database change log table- Throws:
LockException
DatabaseException
-
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
-
-