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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
destroy()
void
Releases whatever locks are on the database change log tableint
boolean
void
init()
void
void
reset()
Clears information the lock handler knows about the tables.void
setChangeLogLockRecheckTime
(long changeLogLockRecheckTime) void
setChangeLogLockWaitTime
(long changeLogLockWaitTime) void
setDatabase
(Database database) boolean
void
-
Constructor Details
-
OfflineLockService
public OfflineLockService()
-
-
Method Details
-
getPriority
public int getPriority()- Specified by:
getPriority
in interfacePrioritizedService
-
supports
- Specified by:
supports
in interfaceLockService
-
init
- Specified by:
init
in interfaceLockService
- Throws:
DatabaseException
-
setDatabase
- Specified by:
setDatabase
in interfaceLockService
-
setChangeLogLockWaitTime
public void setChangeLogLockWaitTime(long changeLogLockWaitTime) - Specified by:
setChangeLogLockWaitTime
in interfaceLockService
-
setChangeLogLockRecheckTime
public void setChangeLogLockRecheckTime(long changeLogLockRecheckTime) - Specified by:
setChangeLogLockRecheckTime
in interfaceLockService
-
hasChangeLogLock
public boolean hasChangeLogLock()- Specified by:
hasChangeLogLock
in interfaceLockService
-
waitForLock
- Specified by:
waitForLock
in interfaceLockService
- Throws:
LockException
-
acquireLock
- Specified by:
acquireLock
in interfaceLockService
- Throws:
LockException
-
releaseLock
- Specified by:
releaseLock
in interfaceLockService
- Throws:
LockException
-
listLocks
- Specified by:
listLocks
in interfaceLockService
- Throws:
LockException
-
forceReleaseLock
Description copied from interface:LockService
Releases whatever locks are on the database change log table- Specified by:
forceReleaseLock
in interfaceLockService
- 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 interfaceLockService
-
destroy
- Specified by:
destroy
in interfaceLockService
- Throws:
DatabaseException
-