Package com.evolveum.midpoint.repo.api
Interface CacheDispatcher
-
- All Known Implementing Classes:
CacheDispatcherImpl
public interface CacheDispatcher
Dispatches events to cache listeners (currently CacheRegistry and ClusterCacheListener).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description <O extends ObjectType>
voiddispatchInvalidation(@Nullable Class<O> type, @Nullable String oid, boolean clusterwide, @Nullable CacheInvalidationContext context)
Dispatches "cache entry/entries invalidation" event to all relevant caches, even clusterwide if requested so.void
registerCacheInvalidationListener(CacheInvalidationListener cacheListener)
default void
registerCacheListener(CacheListener cacheListener)
void
unregisterCacheInvalidationListener(CacheInvalidationListener cacheListener)
default void
unregisterCacheListener(CacheListener cacheListener)
-
-
-
Method Detail
-
registerCacheListener
default void registerCacheListener(CacheListener cacheListener)
-
unregisterCacheListener
default void unregisterCacheListener(CacheListener cacheListener)
-
registerCacheInvalidationListener
void registerCacheInvalidationListener(CacheInvalidationListener cacheListener)
-
unregisterCacheInvalidationListener
void unregisterCacheInvalidationListener(CacheInvalidationListener cacheListener)
-
dispatchInvalidation
<O extends ObjectType> void dispatchInvalidation(@Nullable @Nullable Class<O> type, @Nullable @Nullable String oid, boolean clusterwide, @Nullable @Nullable CacheInvalidationContext context)
Dispatches "cache entry/entries invalidation" event to all relevant caches, even clusterwide if requested so.- Parameters:
type
- Type of object(s) to be invalidated. Null means 'all types' (implies oid is null as well).oid
- Object(s) to be invalidated. Null means 'all objects of given type(s)'.clusterwide
- True if the event has to be distributed clusterwide.context
- Context of the invalidation request (optional).
-
-