Class LiquibaseDBLockProvider
java.lang.Object
org.keycloak.connections.jpa.updater.liquibase.lock.LiquibaseDBLockProvider
- All Implemented Interfaces:
 DBLockProvider,Provider
- Author:
 - Marek Posolda
 
- 
Nested Class Summary
Nested classes/interfaces inherited from interface org.keycloak.models.dblock.DBLockProvider
DBLockProvider.Namespace - 
Constructor Summary
ConstructorsConstructorDescriptionLiquibaseDBLockProvider(LiquibaseDBLockProviderFactory factory, KeycloakSession session)  - 
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidWill destroy whole state of DB lock (drop table/collection to track locking).Returns the current provider namespace locked or nullvoidRelease previously acquired lock by this provider.booleanvoidTry to retrieve DB lock or wait if retrieve was unsuccessful. 
- 
Constructor Details
- 
LiquibaseDBLockProvider
 
 - 
 - 
Method Details
- 
waitForLock
Description copied from interface:DBLockProviderTry to retrieve DB lock or wait if retrieve was unsuccessful. Throw exception if lock can't be retrieved within specified timeout (900 seconds by default) Throw exception if a different namespace has already been locked by this provider.- Specified by:
 waitForLockin interfaceDBLockProvider- Parameters:
 lock- The namespace to lock
 - 
releaseLock
public void releaseLock()Description copied from interface:DBLockProviderRelease previously acquired lock by this provider.- Specified by:
 releaseLockin interfaceDBLockProvider
 - 
getCurrentLock
Description copied from interface:DBLockProviderReturns the current provider namespace locked or null- Specified by:
 getCurrentLockin interfaceDBLockProvider- Returns:
 - The namespace locked or null if there is no lock
 
 - 
supportsForcedUnlock
public boolean supportsForcedUnlock()- Specified by:
 supportsForcedUnlockin interfaceDBLockProvider- Returns:
 - true if provider supports forced unlock at startup
 
 - 
destroyLockInfo
public void destroyLockInfo()Description copied from interface:DBLockProviderWill destroy whole state of DB lock (drop table/collection to track locking).- Specified by:
 destroyLockInfoin interfaceDBLockProvider
 - 
close
public void close() 
 -