public class LiquibaseDBLockProvider extends Object implements DBLockProvider
DBLockProvider.Namespace| Constructor and Description |
|---|
LiquibaseDBLockProvider(LiquibaseDBLockProviderFactory factory,
KeycloakSession session) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
destroyLockInfo()
Will destroy whole state of DB lock (drop table/collection to track locking).
|
DBLockProvider.Namespace |
getCurrentLock()
Returns the current provider namespace locked or null
|
void |
releaseLock()
Release previously acquired lock by this provider.
|
boolean |
supportsForcedUnlock() |
void |
waitForLock(DBLockProvider.Namespace lock)
Try to retrieve DB lock or wait if retrieve was unsuccessful.
|
public LiquibaseDBLockProvider(LiquibaseDBLockProviderFactory factory, KeycloakSession session)
public void waitForLock(DBLockProvider.Namespace lock)
DBLockProviderwaitForLock in interface DBLockProviderlock - The namespace to lockpublic void releaseLock()
DBLockProviderreleaseLock in interface DBLockProviderpublic DBLockProvider.Namespace getCurrentLock()
DBLockProvidergetCurrentLock in interface DBLockProviderpublic boolean supportsForcedUnlock()
supportsForcedUnlock in interface DBLockProviderpublic void destroyLockInfo()
DBLockProviderdestroyLockInfo in interface DBLockProviderCopyright © 2021 JBoss by Red Hat. All rights reserved.