Class DummyLockService
java.lang.Object
liquibase.lockservice.StandardLockService
org.keycloak.connections.jpa.updater.liquibase.lock.DummyLockService
- All Implemented Interfaces:
liquibase.lockservice.LockService
,liquibase.servicelocator.PrioritizedService
public class DummyLockService
extends liquibase.lockservice.StandardLockService
Dummy lock service injected to Liquibase. Doesn't need to do anything as we already have a lock when Liquibase update is called.
- 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
acquireLock, destroy, forceReleaseLock, getChangeLogLockRecheckTime, getChangeLogLockWaitTime, hasChangeLogLock, isDatabaseChangeLogLockTableCreated, isDatabaseChangeLogLockTableCreated, isDatabaseChangeLogLockTableInitialized, isDatabaseChangeLogLockTableInitialized, listLocks, reset, setChangeLogLockRecheckTime, setChangeLogLockWaitTime, setDatabase, supports
-
Constructor Details
-
DummyLockService
public DummyLockService()
-
-
Method Details
-
getPriority
public int getPriority()- Specified by:
getPriority
in interfaceliquibase.servicelocator.PrioritizedService
- Overrides:
getPriority
in classliquibase.lockservice.StandardLockService
-
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() throws liquibase.exception.LockException- Specified by:
waitForLock
in interfaceliquibase.lockservice.LockService
- Overrides:
waitForLock
in classliquibase.lockservice.StandardLockService
- Throws:
liquibase.exception.LockException
-
releaseLock
public void releaseLock() throws liquibase.exception.LockException- Specified by:
releaseLock
in interfaceliquibase.lockservice.LockService
- Overrides:
releaseLock
in classliquibase.lockservice.StandardLockService
- Throws:
liquibase.exception.LockException
-