Package org.keycloak.models.dblock
Class NoLockingDBLockProviderFactory
- java.lang.Object
-
- org.keycloak.models.dblock.NoLockingDBLockProviderFactory
-
- All Implemented Interfaces:
DBLockProviderFactory,EnvironmentDependentProviderFactory,ProviderFactory<DBLockProvider>
public class NoLockingDBLockProviderFactory extends Object implements DBLockProviderFactory, EnvironmentDependentProviderFactory
-
-
Field Summary
Fields Modifier and Type Field Description static StringPROVIDER_ID
-
Constructor Summary
Constructors Constructor Description NoLockingDBLockProviderFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()DBLockProvidercreate(KeycloakSession session)StringgetId()voidinit(Config.Scope config)booleanisSupported()voidpostInit(KeycloakSessionFactory factory)voidsetTimeouts(long lockRecheckTimeMillis, long lockWaitTimeoutMillis)Useful for testing to override provided configuration-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.keycloak.provider.EnvironmentDependentProviderFactory
isSupported
-
Methods inherited from interface org.keycloak.provider.ProviderFactory
order
-
-
-
-
Field Detail
-
PROVIDER_ID
public static final String PROVIDER_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
setTimeouts
public void setTimeouts(long lockRecheckTimeMillis, long lockWaitTimeoutMillis)Description copied from interface:DBLockProviderFactoryUseful for testing to override provided configuration- Specified by:
setTimeoutsin interfaceDBLockProviderFactory
-
create
public DBLockProvider create(KeycloakSession session)
- Specified by:
createin interfaceProviderFactory<DBLockProvider>
-
init
public void init(Config.Scope config)
- Specified by:
initin interfaceProviderFactory<DBLockProvider>
-
postInit
public void postInit(KeycloakSessionFactory factory)
- Specified by:
postInitin interfaceProviderFactory<DBLockProvider>
-
close
public void close()
- Specified by:
closein interfaceProviderFactory<DBLockProvider>
-
getId
public String getId()
- Specified by:
getIdin interfaceProviderFactory<DBLockProvider>
-
isSupported
public boolean isSupported()
- Specified by:
isSupportedin interfaceEnvironmentDependentProviderFactory- Returns:
trueif the provider is supported and should be available,falseotherwise
-
-