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
-
-
Constructor Summary
Constructors Constructor Description DummyLockService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getPriority()
void
init()
void
releaseLock()
void
waitForLock()
-
Methods inherited from class liquibase.lockservice.StandardLockService
acquireLock, destroy, forceReleaseLock, getChangeLogLockRecheckTime, getChangeLogLockWaitTime, hasChangeLogLock, hasDatabaseChangeLogLockTable, hasDatabaseChangeLogLockTable, isDatabaseChangeLogLockTableInitialized, isDatabaseChangeLogLockTableInitialized, listLocks, reset, setChangeLogLockRecheckTime, setChangeLogLockWaitTime, setDatabase, supports
-
-
-
-
Method Detail
-
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
-
-