Class CacheSet

  • Direct Known Subclasses:
    LRUCacheSet

    public abstract class CacheSet
    extends Object
    A set of Caches, indexed by CacheKey.
    • Field Detail

    • Constructor Detail

      • CacheSet

        public CacheSet​(Object[] keys)
      • CacheSet

        public CacheSet​(Object[] keys,
                        int size)
      • CacheSet

        public CacheSet​(Object[] keys,
                        int[] sizes)
    • Method Detail

      • createCache

        protected abstract Cache createCache​(int size)
      • addCache

        public void addCache​(Object key)
      • addCache

        public void addCache​(Object key,
                             int size)
      • clearCache

        public void clearCache​(Object key)
      • getCacheSize

        public int getCacheSize​(Object cacheKey)
      • getCacheCapacity

        public int getCacheCapacity​(Object cacheKey)
      • setCacheCapacity

        public int setCacheCapacity​(Object cacheKey,
                                    int capacity)
      • getSize

        public int getSize()
      • getCache

        protected Cache getCache​(Object cacheKey)