Interface CacheAccessListener

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int ACCESS_INTERVAL
      The access listener is only called each x accesses.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void cacheAccessed​(long accessCount)
      The cache calls this method after a number of cache accesses.
      For statistical purposes, the cache access count since the last call is included.
      void disposeCache​(Cache cache)
      Called after the cache is no longer used.
    • Field Detail

      • ACCESS_INTERVAL

        static final int ACCESS_INTERVAL
        The access listener is only called each x accesses.
        See Also:
        Constant Field Values
    • Method Detail

      • cacheAccessed

        void cacheAccessed​(long accessCount)
        The cache calls this method after a number of cache accesses.
        For statistical purposes, the cache access count since the last call is included. In normal circumstances this is equal to ACCESS_INTERVAL
        Parameters:
        accessCount - number of cache accesses since the last call
      • disposeCache

        void disposeCache​(Cache cache)
        Called after the cache is no longer used.