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 SummaryModifier and TypeMethodDescription<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.voidregisterCacheInvalidationListener(CacheInvalidationListener cacheListener) default voidregisterCacheListener(CacheListener cacheListener) voidunregisterCacheInvalidationListener(CacheInvalidationListener cacheListener) default voidunregisterCacheListener(CacheListener cacheListener) 
- 
Method Details- 
registerCacheListener
- 
unregisterCacheListener
- 
registerCacheInvalidationListener
- 
unregisterCacheInvalidationListener
- 
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).
 
 
-