Class CustomLockService
java.lang.Object
liquibase.lockservice.StandardLockService
org.keycloak.connections.jpa.updater.liquibase.lock.CustomLockService
- All Implemented Interfaces:
liquibase.lockservice.LockService
,liquibase.servicelocator.PrioritizedService
public class CustomLockService
extends liquibase.lockservice.StandardLockService
Liquibase lock service, which has some bugfixes and assumes timeouts to be configured in milliseconds
- Author:
- Marek Posolda
-
Field Summary
Fields inherited from class liquibase.lockservice.StandardLockService
changeLogLockPollRate, changeLogLockRecheckTime, coreBundle, database, hasChangeLogLock, hasDatabaseChangeLogLockTable, isDatabaseChangeLogLockTableInitialized, quotingStrategy, random
Fields inherited from interface liquibase.servicelocator.PrioritizedService
COMPARATOR, PRIORITY_DATABASE, PRIORITY_DEFAULT
-
Constructor Summary
-
Method Summary
Methods inherited from class liquibase.lockservice.StandardLockService
destroy, forceReleaseLock, getChangeLogLockRecheckTime, getChangeLogLockWaitTime, getPriority, hasChangeLogLock, isDatabaseChangeLogLockTableCreated, isDatabaseChangeLogLockTableInitialized, isDatabaseChangeLogLockTableInitialized, listLocks, reset, setChangeLogLockRecheckTime, setChangeLogLockWaitTime, setDatabase, supports
-
Constructor Details
-
CustomLockService
public CustomLockService()
-
-
Method Details
-
isDatabaseChangeLogLockTableCreated
protected boolean isDatabaseChangeLogLockTableCreated() throws liquibase.exception.DatabaseException- Overrides:
isDatabaseChangeLogLockTableCreated
in classliquibase.lockservice.StandardLockService
- Throws:
liquibase.exception.DatabaseException
-
init
public void init() throws liquibase.exception.DatabaseException- Specified by:
init
in interfaceliquibase.lockservice.LockService
- Overrides:
init
in classliquibase.lockservice.StandardLockService
- Throws:
liquibase.exception.DatabaseException
-
waitForLock
public void waitForLock()- Specified by:
waitForLock
in interfaceliquibase.lockservice.LockService
- Overrides:
waitForLock
in classliquibase.lockservice.StandardLockService
-
waitForLock
-
acquireLock
public boolean acquireLock()- Specified by:
acquireLock
in interfaceliquibase.lockservice.LockService
- Overrides:
acquireLock
in classliquibase.lockservice.StandardLockService
-
releaseLock
public void releaseLock()- Specified by:
releaseLock
in interfaceliquibase.lockservice.LockService
- Overrides:
releaseLock
in classliquibase.lockservice.StandardLockService
-