Class LiquibaseDBLockProviderFactory
java.lang.Object
org.keycloak.connections.jpa.updater.liquibase.lock.LiquibaseDBLockProviderFactory
- All Implemented Interfaces:
DBLockProviderFactory,ProviderFactory<DBLockProvider>
- Author:
- Marek Posolda
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()This is called when the server shuts down.create(KeycloakSession session) Returns the metadata for each configuration property supported by this factory.getId()protected longvoidinit(Config.Scope config) Only called once when the factory is first created.intorder()voidpostInit(KeycloakSessionFactory factory) Called after all provider factories have been initializedvoidsetTimeouts(long lockRecheckTimeMillis, long lockWaitTimeoutMillis) Useful for testing to override provided configurationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.provider.ProviderFactory
dependsOn
-
Field Details
-
PROVIDER_PRIORITY
public static final int PROVIDER_PRIORITY- See Also:
-
-
Constructor Details
-
LiquibaseDBLockProviderFactory
public LiquibaseDBLockProviderFactory()
-
-
Method Details
-
getLockWaitTimeoutMillis
protected long getLockWaitTimeoutMillis() -
init
Description copied from interface:ProviderFactoryOnly called once when the factory is first created.- Specified by:
initin interfaceProviderFactory<DBLockProvider>
-
postInit
Description copied from interface:ProviderFactoryCalled after all provider factories have been initialized- Specified by:
postInitin interfaceProviderFactory<DBLockProvider>
-
create
- Specified by:
createin interfaceProviderFactory<DBLockProvider>
-
setTimeouts
public void setTimeouts(long lockRecheckTimeMillis, long lockWaitTimeoutMillis) Description copied from interface:DBLockProviderFactoryUseful for testing to override provided configuration- Specified by:
setTimeoutsin interfaceDBLockProviderFactory
-
close
public void close()Description copied from interface:ProviderFactoryThis is called when the server shuts down.- Specified by:
closein interfaceProviderFactory<DBLockProvider>
-
getId
- Specified by:
getIdin interfaceProviderFactory<DBLockProvider>
-
order
public int order()- Specified by:
orderin interfaceProviderFactory<DBLockProvider>
-
getConfigMetadata
Description copied from interface:ProviderFactoryReturns the metadata for each configuration property supported by this factory.- Specified by:
getConfigMetadatain interfaceProviderFactory<DBLockProvider>- Returns:
- a list with the metadata for each configuration property supported by this factory
-