Package org.keycloak.provider
Interface InvalidationHandler
-
- All Known Subinterfaces:
ComponentFactoryProviderFactory
,KeycloakSession
,KeycloakSessionFactory
- All Known Implementing Classes:
DefaultComponentFactoryProviderFactory
,DefaultKeycloakSession
,DefaultKeycloakSessionFactory
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(InvalidationHandler.InvalidableObjectType type, Object... ids)
Invalidates intermediate states of the given objects
-
-
-
Method Detail
-
invalidate
void invalidate(InvalidationHandler.InvalidableObjectType type, Object... ids)
Invalidates intermediate states of the given objects- Parameters:
type
- Type of the objects to invalidateids
- Identifiers of the invalidated objects
-
-