Class LiquibaseDBLockProviderFactory
- java.lang.Object
- 
- org.keycloak.connections.jpa.updater.liquibase.lock.LiquibaseDBLockProviderFactory
 
- 
- All Implemented Interfaces:
- DBLockProviderFactory,- EnvironmentDependentProviderFactory,- ProviderFactory<DBLockProvider>
 
 public class LiquibaseDBLockProviderFactory extends Object implements DBLockProviderFactory, EnvironmentDependentProviderFactory - Author:
- Marek Posolda
 
- 
- 
Field SummaryFields Modifier and Type Field Description static intPROVIDER_PRIORITY
 - 
Constructor SummaryConstructors Constructor Description LiquibaseDBLockProviderFactory()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()This is called when the server shuts down.LiquibaseDBLockProvidercreate(KeycloakSession session)List<ProviderConfigProperty>getConfigMetadata()Returns the metadata for each configuration property supported by this factory.StringgetId()protected longgetLockWaitTimeoutMillis()voidinit(Config.Scope config)Only called once when the factory is first created.booleanisSupported()intorder()voidpostInit(KeycloakSessionFactory factory)Called after all provider factories have been initializedvoidsetTimeouts(long lockRecheckTimeMillis, long lockWaitTimeoutMillis)Useful for testing to override provided configuration- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.keycloak.provider.EnvironmentDependentProviderFactoryisSupported
 
- 
 
- 
- 
- 
Field Detail- 
PROVIDER_PRIORITYpublic static final int PROVIDER_PRIORITY - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getLockWaitTimeoutMillisprotected long getLockWaitTimeoutMillis() 
 - 
initpublic void init(Config.Scope config) Description copied from interface:ProviderFactoryOnly called once when the factory is first created. This config is pulled from keycloak_server.json- Specified by:
- initin interface- ProviderFactory<DBLockProvider>
 
 - 
postInitpublic void postInit(KeycloakSessionFactory factory) Description copied from interface:ProviderFactoryCalled after all provider factories have been initialized- Specified by:
- postInitin interface- ProviderFactory<DBLockProvider>
 
 - 
createpublic LiquibaseDBLockProvider create(KeycloakSession session) - Specified by:
- createin interface- ProviderFactory<DBLockProvider>
 
 - 
setTimeoutspublic void setTimeouts(long lockRecheckTimeMillis, long lockWaitTimeoutMillis)Description copied from interface:DBLockProviderFactoryUseful for testing to override provided configuration- Specified by:
- setTimeoutsin interface- DBLockProviderFactory
 
 - 
closepublic void close() Description copied from interface:ProviderFactoryThis is called when the server shuts down.- Specified by:
- closein interface- ProviderFactory<DBLockProvider>
 
 - 
getIdpublic String getId() - Specified by:
- getIdin interface- ProviderFactory<DBLockProvider>
 
 - 
orderpublic int order() - Specified by:
- orderin interface- ProviderFactory<DBLockProvider>
 
 - 
getConfigMetadatapublic List<ProviderConfigProperty> getConfigMetadata() Description copied from interface:ProviderFactoryReturns the metadata for each configuration property supported by this factory.- Specified by:
- getConfigMetadatain interface- ProviderFactory<DBLockProvider>
- Returns:
- a list with the metadata for each configuration property supported by this factory
 
 - 
isSupportedpublic boolean isSupported() - Specified by:
- isSupportedin interface- EnvironmentDependentProviderFactory
- Returns:
- trueif the provider is supported and should be available,- falseotherwise
 
 
- 
 
-