public class NoLockingDBLockProviderFactory extends Object implements DBLockProviderFactory, EnvironmentDependentProviderFactory
| Modifier and Type | Field and Description |
|---|---|
static String |
PROVIDER_ID |
| Constructor and Description |
|---|
NoLockingDBLockProviderFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
This is called when the server shuts down.
|
DBLockProvider |
create(KeycloakSession session) |
String |
getId() |
void |
init(Config.Scope config)
Only called once when the factory is first created.
|
boolean |
isSupported() |
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, waitorderpublic static final String PROVIDER_ID
public void setTimeouts(long lockRecheckTimeMillis,
long lockWaitTimeoutMillis)
DBLockProviderFactorysetTimeouts in interface DBLockProviderFactorypublic DBLockProvider create(KeycloakSession session)
create in interface ProviderFactory<DBLockProvider>public void init(Config.Scope config)
ProviderFactoryinit in interface ProviderFactory<DBLockProvider>public void postInit(KeycloakSessionFactory factory)
ProviderFactorypostInit in interface ProviderFactory<DBLockProvider>public void close()
ProviderFactoryclose in interface ProviderFactory<DBLockProvider>public String getId()
getId in interface ProviderFactory<DBLockProvider>public boolean isSupported()
isSupported in interface EnvironmentDependentProviderFactorytrue if the provider is supported and should be available, false otherwiseCopyright © 2021 JBoss by Red Hat. All rights reserved.