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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    void
     
    void
     
    void
     

    Methods inherited from class liquibase.lockservice.StandardLockService

    acquireLock, destroy, forceReleaseLock, getChangeLogLockRecheckTime, getChangeLogLockWaitTime, hasChangeLogLock, isDatabaseChangeLogLockTableCreated, isDatabaseChangeLogLockTableCreated, isDatabaseChangeLogLockTableInitialized, isDatabaseChangeLogLockTableInitialized, listLocks, reset, setChangeLogLockRecheckTime, setChangeLogLockWaitTime, setDatabase, supports

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DummyLockService

      public DummyLockService()
  • Method Details

    • getPriority

      public int getPriority()
      Specified by:
      getPriority in interface liquibase.servicelocator.PrioritizedService
      Overrides:
      getPriority in class liquibase.lockservice.StandardLockService
    • init

      public void init() throws liquibase.exception.DatabaseException
      Specified by:
      init in interface liquibase.lockservice.LockService
      Overrides:
      init in class liquibase.lockservice.StandardLockService
      Throws:
      liquibase.exception.DatabaseException
    • waitForLock

      public void waitForLock() throws liquibase.exception.LockException
      Specified by:
      waitForLock in interface liquibase.lockservice.LockService
      Overrides:
      waitForLock in class liquibase.lockservice.StandardLockService
      Throws:
      liquibase.exception.LockException
    • releaseLock

      public void releaseLock() throws liquibase.exception.LockException
      Specified by:
      releaseLock in interface liquibase.lockservice.LockService
      Overrides:
      releaseLock in class liquibase.lockservice.StandardLockService
      Throws:
      liquibase.exception.LockException