Package com.evolveum.midpoint.repo.api
Interface CacheDispatcher
-
- All Known Implementing Classes:
CacheDispatcherImpl
public interface CacheDispatcher
-
-
Method Summary
All Methods Instance Methods Abstract 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
registerCacheListener(CacheListener cacheListener)
void
unregisterCacheListener(CacheListener cacheListener)
-
-
-
Method Detail
-
registerCacheListener
void registerCacheListener(CacheListener cacheListener)
-
unregisterCacheListener
void unregisterCacheListener(CacheListener 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).
-
-