Interface InvalidationHandler

  • All Known Subinterfaces:
    KeycloakSession, KeycloakSessionFactory

    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
    • Method Detail

      • invalidate

        void invalidate​(InvalidationHandler.InvalidableObjectType type,
                        Object... ids)
        Invalidates intermediate states of the given objects
        Parameters:
        type - Type of the objects to invalidate
        ids - Identifiers of the invalidated objects