Interface CacheLifecycleCallback

  • All Known Implementing Classes:
    RegionCacheAdapter

    public interface CacheLifecycleCallback
    A callback interface used by CacheController to provide notification about important events.
    • Method Detail

      • onAfterAdd

        void onAfterAdd​(CacheKey key,
                        java.lang.Object value,
                        CacheRegion region)
        Executes after an object has been added to the cache.
      • onAfterRemove

        void onAfterRemove​(CacheKey key,
                           java.lang.Object value,
                           CacheRegion region)
        Executes after an object has been removed from the cache.
      • onAfterEviction

        void onAfterEviction​(CacheKey key,
                             java.lang.Object value,
                             CacheRegion region)
        Executes after an object has been evicted from the cache.
      • onMissLoad

        void onMissLoad​(CacheKey key,
                        java.lang.Object value,
                        CacheRegion lruCacheRegion)
        Executes after an object has been loaded but not added to the cache.