public class LiquibaseDBLockProviderFactory extends Object implements DBLockProviderFactory
Constructor and Description |
---|
LiquibaseDBLockProviderFactory() |
Modifier and Type | Method and Description |
---|---|
void |
close()
This is called when the server shuts down.
|
LiquibaseDBLockProvider |
create(KeycloakSession session) |
String |
getId() |
protected long |
getLockWaitTimeoutMillis() |
void |
init(Config.Scope config)
Only called once when the factory is first created.
|
void |
postInit(KeycloakSessionFactory factory)
Called after all provider factories have been initialized
|
void |
setTimeouts(long lockRecheckTimeMillis,
long lockWaitTimeoutMillis)
Useful for testing to override provided configuration
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
order
protected long getLockWaitTimeoutMillis()
public void init(Config.Scope config)
ProviderFactory
init
in interface ProviderFactory<DBLockProvider>
public void postInit(KeycloakSessionFactory factory)
ProviderFactory
postInit
in interface ProviderFactory<DBLockProvider>
public LiquibaseDBLockProvider create(KeycloakSession session)
create
in interface ProviderFactory<DBLockProvider>
public void setTimeouts(long lockRecheckTimeMillis, long lockWaitTimeoutMillis)
DBLockProviderFactory
setTimeouts
in interface DBLockProviderFactory
public void close()
ProviderFactory
close
in interface ProviderFactory<DBLockProvider>
public String getId()
getId
in interface ProviderFactory<DBLockProvider>
Copyright © 2021 JBoss by Red Hat. All rights reserved.