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
Nested Classes Modifier and Type Interface Description static interface
InvalidationHandler.InvalidableObjectType
Tagging interface for the kinds of invalidatable objectstatic class
InvalidationHandler.ObjectType
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
invalidate(KeycloakSession session, InvalidationHandler.InvalidableObjectType type, Object... params)
Invalidates intermediate states of the given objects
-
-
-
Method Detail
-
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
-
-