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
-
-
Constructor Summary
Constructors Constructor Description CustomLockService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
acquireLock()
protected boolean
hasDatabaseChangeLogLockTable()
void
init()
void
releaseLock()
void
waitForLock()
void
waitForLock(DBLockProvider.Namespace lock)
-
Methods inherited from class liquibase.lockservice.StandardLockService
destroy, forceReleaseLock, getChangeLogLockRecheckTime, getChangeLogLockWaitTime, getPriority, hasChangeLogLock, hasDatabaseChangeLogLockTable, isDatabaseChangeLogLockTableInitialized, isDatabaseChangeLogLockTableInitialized, listLocks, reset, setChangeLogLockRecheckTime, setChangeLogLockWaitTime, setDatabase, supports
-
-
-
-
Method Detail
-
hasDatabaseChangeLogLockTable
protected boolean hasDatabaseChangeLogLockTable() throws liquibase.exception.DatabaseException
- Overrides:
hasDatabaseChangeLogLockTable
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
public void waitForLock(DBLockProvider.Namespace lock)
-
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
-
-