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)
DBLockProvider
waitForLock
in interface DBLockProvider
lock
- The namespace to lockpublic void releaseLock()
DBLockProvider
releaseLock
in interface DBLockProvider
public DBLockProvider.Namespace getCurrentLock()
DBLockProvider
getCurrentLock
in interface DBLockProvider
public boolean supportsForcedUnlock()
supportsForcedUnlock
in interface DBLockProvider
public void destroyLockInfo()
DBLockProvider
destroyLockInfo
in interface DBLockProvider
Copyright © 2021 JBoss by Red Hat. All rights reserved.