Class InfinispanUserCacheProviderFactory
- java.lang.Object
- 
- org.keycloak.models.cache.infinispan.InfinispanUserCacheProviderFactory
 
- 
- All Implemented Interfaces:
- UserCacheProviderFactory,- InvalidationHandler,- ProviderFactory<UserCache>
 
 public class InfinispanUserCacheProviderFactory extends Object implements UserCacheProviderFactory, InvalidationHandler - Author:
- Stian Thorgersen
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface org.keycloak.provider.InvalidationHandlerInvalidationHandler.InvalidableObjectType, InvalidationHandler.ObjectType
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static StringUSER_CLEAR_CACHE_EVENTSstatic StringUSER_INVALIDATION_EVENTSprotected UserCacheManageruserCache
 - 
Constructor SummaryConstructors Constructor Description InfinispanUserCacheProviderFactory()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()This is called when the server shuts down.UserCachecreate(KeycloakSession session)StringgetId()voidinit(Config.Scope config)Only called once when the factory is first created.voidinvalidate(KeycloakSession session, InvalidationHandler.InvalidableObjectType type, Object... params)Invalidates intermediate states of the given objectsvoidpostInit(KeycloakSessionFactory factory)Called after all provider factories have been initialized- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.keycloak.provider.ProviderFactorygetConfigMetadata, order
 
- 
 
- 
- 
- 
Field Detail- 
USER_CLEAR_CACHE_EVENTSpublic static final String USER_CLEAR_CACHE_EVENTS - See Also:
- Constant Field Values
 
 - 
USER_INVALIDATION_EVENTSpublic static final String USER_INVALIDATION_EVENTS - See Also:
- Constant Field Values
 
 - 
userCacheprotected volatile UserCacheManager userCache 
 
- 
 - 
Method Detail- 
createpublic UserCache create(KeycloakSession session) - Specified by:
- createin interface- ProviderFactory<UserCache>
 
 - 
invalidatepublic void invalidate(KeycloakSession session, InvalidationHandler.InvalidableObjectType type, Object... params) Description copied from interface:InvalidationHandlerInvalidates intermediate states of the given objects- Specified by:
- invalidatein interface- InvalidationHandler
- Parameters:
- session- KeycloakSession
- type- Type of the objects to invalidate
- params- Parameters used for the invalidation
 
 - 
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<UserCache>
 
 - 
postInitpublic void postInit(KeycloakSessionFactory factory) Description copied from interface:ProviderFactoryCalled after all provider factories have been initialized- Specified by:
- postInitin interface- ProviderFactory<UserCache>
 
 - 
closepublic void close() Description copied from interface:ProviderFactoryThis is called when the server shuts down.- Specified by:
- closein interface- ProviderFactory<UserCache>
 
 - 
getIdpublic String getId() - Specified by:
- getIdin interface- ProviderFactory<UserCache>
 
 
- 
 
-