Interface CacheDispatcher

    • Method Detail

      • registerCacheListener

        void registerCacheListener​(CacheListener cacheListener)
      • unregisterCacheListener

        void unregisterCacheListener​(CacheListener cacheListener)
      • dispatchInvalidation

        <O extends ObjectType> void dispatchInvalidation​(@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.
        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).