Package org.keycloak.provider
Interface InvalidationHandler
- All Known Subinterfaces:
ComponentFactoryProviderFactory
,KeycloakSessionFactory
- All Known Implementing Classes:
DefaultComponentFactoryProviderFactory
,DefaultKeycloakSessionFactory
,ImportSessionFactoryWrapper
,InfinispanUserCacheProviderFactory
,JpaEventStoreProviderFactory
,MapAuthorizationStoreFactory
,MapClientProviderFactory
,MapClientScopeProviderFactory
,MapEventStoreProviderFactory
,MapGroupProviderFactory
,MapRealmProviderFactory
,MapRoleProviderFactory
,MapUserLoginFailureProviderFactory
,MapUserProviderFactory
,MapUserSessionProviderFactory
public interface InvalidationHandler
Handles invalidation requests. This interface is specifically implemented by
providers that implement a cache of objects that might change in the outside.
Note that implementors are expected to react to invalidation requests: invalidate the objects in the cache. They should not initiate invalidation of the same objects neither locally nor via network - that could result in an infinite loop.
- Author:
- hmlnarik
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Tagging interface for the kinds of invalidatable objectstatic enum
-
Method Summary
Modifier and TypeMethodDescriptionvoid
invalidate
(KeycloakSession session, InvalidationHandler.InvalidableObjectType type, Object... params) Invalidates intermediate states of the given objects
-
Method Details
-
invalidate
void invalidate(KeycloakSession session, InvalidationHandler.InvalidableObjectType type, Object... params) Invalidates intermediate states of the given objects- Parameters:
session
- KeycloakSessiontype
- Type of the objects to invalidateparams
- Parameters used for the invalidation
-