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() |
DBLockProvider |
create(KeycloakSession session) |
String |
getId() |
void |
init(Config.Scope config) |
boolean |
isSupported() |
void |
postInit(KeycloakSessionFactory factory) |
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
public static final String PROVIDER_ID
public void setTimeouts(long lockRecheckTimeMillis, long lockWaitTimeoutMillis)
DBLockProviderFactory
setTimeouts
in interface DBLockProviderFactory
public DBLockProvider create(KeycloakSession session)
create
in interface ProviderFactory<DBLockProvider>
public void init(Config.Scope config)
init
in interface ProviderFactory<DBLockProvider>
public void postInit(KeycloakSessionFactory factory)
postInit
in interface ProviderFactory<DBLockProvider>
public void close()
close
in interface ProviderFactory<DBLockProvider>
public String getId()
getId
in interface ProviderFactory<DBLockProvider>
public boolean isSupported()
isSupported
in interface EnvironmentDependentProviderFactory
true
if the provider is supported and should be available, false
otherwiseCopyright © 2021 JBoss by Red Hat. All rights reserved.