Class DefaultInfinispanConnectionProviderFactory
java.lang.Object
org.keycloak.connections.infinispan.DefaultInfinispanConnectionProviderFactory
- All Implemented Interfaces:
 InfinispanConnectionProviderFactory,ProviderFactory<InfinispanConnectionProvider>
public class DefaultInfinispanConnectionProviderFactory
extends Object
implements InfinispanConnectionProviderFactory
- Author:
 - Stian Thorgersen
 
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidclose()This is called when the server shuts down.create(KeycloakSession session) Optional method used to declare that a ProviderFactory has a dependency on one or more Providers.protected org.infinispan.configuration.cache.ConfigurationgetId()protected org.infinispan.configuration.cache.Configurationvoidinit(Config.Scope config) Only called once when the factory is first created.protected org.infinispan.manager.EmbeddedCacheManagerinitContainerManaged(org.infinispan.manager.EmbeddedCacheManager cacheManager) protected org.infinispan.manager.EmbeddedCacheManagerprotected voidlazyInit(KeycloakSession keycloakSession) voidpostInit(KeycloakSessionFactory factory) Called after all provider factories have been initializedstatic voidstatic <T> TrunWithReadLockOnCacheManager(Supplier<T> task) static voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.provider.ProviderFactory
getConfigMetadata, order 
- 
Field Details
- 
containerManaged
protected volatile boolean containerManaged 
 - 
 - 
Constructor Details
- 
DefaultInfinispanConnectionProviderFactory
public DefaultInfinispanConnectionProviderFactory() 
 - 
 - 
Method Details
- 
create
- Specified by:
 createin interfaceProviderFactory<InfinispanConnectionProvider>
 - 
runWithReadLockOnCacheManager
 - 
runWithReadLockOnCacheManager
 - 
runWithWriteLockOnCacheManager
 - 
close
public void close()Description copied from interface:ProviderFactoryThis is called when the server shuts down.- Specified by:
 closein interfaceProviderFactory<InfinispanConnectionProvider>
 - 
getId
- Specified by:
 getIdin interfaceProviderFactory<InfinispanConnectionProvider>
 - 
init
Description copied from interface:ProviderFactoryOnly called once when the factory is first created. This config is pulled from keycloak_server.json- Specified by:
 initin interfaceProviderFactory<InfinispanConnectionProvider>
 - 
postInit
Description copied from interface:ProviderFactoryCalled after all provider factories have been initialized- Specified by:
 postInitin interfaceProviderFactory<InfinispanConnectionProvider>
 - 
lazyInit
 - 
initContainerManaged
protected org.infinispan.manager.EmbeddedCacheManager initContainerManaged(org.infinispan.manager.EmbeddedCacheManager cacheManager)  - 
initEmbedded
protected org.infinispan.manager.EmbeddedCacheManager initEmbedded() - 
getKeysCacheConfig
protected org.infinispan.configuration.cache.Configuration getKeysCacheConfig() - 
getCrlCacheConfig
protected org.infinispan.configuration.cache.Configuration getCrlCacheConfig() - 
dependsOn
Description copied from interface:ProviderFactoryOptional method used to declare that a ProviderFactory has a dependency on one or more Providers. If a Provider is declared here, it is guaranteed that the dependenciesProviderFactory.postInit(org.keycloak.models.KeycloakSessionFactory)method will be executed before this ProviderFactory'sProviderFactory.postInit(org.keycloak.models.KeycloakSessionFactory). Similarly, it's guaranteed thatProviderFactory.close()will be called on thisProviderFactorybeforeProviderFactory.close()is called on any of the dependent ProviderFactory implementations.- Specified by:
 dependsOnin interfaceProviderFactory<InfinispanConnectionProvider>
 
 -