Class LiquibaseDBLockProviderFactory
java.lang.Object
org.keycloak.connections.jpa.updater.liquibase.lock.LiquibaseDBLockProviderFactory
- All Implemented Interfaces:
DBLockProviderFactory
,ProviderFactory<DBLockProvider>
- Author:
- Marek Posolda
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
This is called when the server shuts down.create
(KeycloakSession session) Returns the metadata for each configuration property supported by this factory.getId()
protected long
void
init
(Config.Scope config) Only called once when the factory is first created.int
order()
void
postInit
(KeycloakSessionFactory factory) Called after all provider factories have been initializedvoid
setTimeouts
(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, wait
Methods 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:ProviderFactory
Only called once when the factory is first created. This config is pulled from keycloak_server.json- Specified by:
init
in interfaceProviderFactory<DBLockProvider>
-
postInit
Description copied from interface:ProviderFactory
Called after all provider factories have been initialized- Specified by:
postInit
in interfaceProviderFactory<DBLockProvider>
-
create
- Specified by:
create
in interfaceProviderFactory<DBLockProvider>
-
setTimeouts
public void setTimeouts(long lockRecheckTimeMillis, long lockWaitTimeoutMillis) Description copied from interface:DBLockProviderFactory
Useful for testing to override provided configuration- Specified by:
setTimeouts
in interfaceDBLockProviderFactory
-
close
public void close()Description copied from interface:ProviderFactory
This is called when the server shuts down.- Specified by:
close
in interfaceProviderFactory<DBLockProvider>
-
getId
- Specified by:
getId
in interfaceProviderFactory<DBLockProvider>
-
order
public int order()- Specified by:
order
in interfaceProviderFactory<DBLockProvider>
-
getConfigMetadata
Description copied from interface:ProviderFactory
Returns the metadata for each configuration property supported by this factory.- Specified by:
getConfigMetadata
in interfaceProviderFactory<DBLockProvider>
- Returns:
- a list with the metadata for each configuration property supported by this factory
-