Class DummyCache<K,​V>

  • All Implemented Interfaces:
    org.apache.commons.jcs.access.behavior.ICacheAccess<K,​V>, org.apache.commons.jcs.access.behavior.ICacheAccessManagement

    public class DummyCache<K,​V>
    extends Object
    implements org.apache.commons.jcs.access.behavior.ICacheAccess<K,​V>
    • Constructor Detail

      • DummyCache

        public DummyCache()
    • Method Detail

      • dispose

        public void dispose()
        Specified by:
        dispose in interface org.apache.commons.jcs.access.behavior.ICacheAccessManagement
      • clear

        public void clear()
                   throws org.apache.commons.jcs.access.exception.CacheException
        Specified by:
        clear in interface org.apache.commons.jcs.access.behavior.ICacheAccessManagement
        Throws:
        org.apache.commons.jcs.access.exception.CacheException
      • getDefaultElementAttributes

        public org.apache.commons.jcs.engine.behavior.IElementAttributes getDefaultElementAttributes()
                                                                                              throws org.apache.commons.jcs.access.exception.CacheException
        Specified by:
        getDefaultElementAttributes in interface org.apache.commons.jcs.access.behavior.ICacheAccessManagement
        Throws:
        org.apache.commons.jcs.access.exception.CacheException
      • setDefaultElementAttributes

        public void setDefaultElementAttributes​(org.apache.commons.jcs.engine.behavior.IElementAttributes attr)
                                         throws org.apache.commons.jcs.access.exception.CacheException
        Specified by:
        setDefaultElementAttributes in interface org.apache.commons.jcs.access.behavior.ICacheAccessManagement
        Throws:
        org.apache.commons.jcs.access.exception.CacheException
      • getCacheAttributes

        public org.apache.commons.jcs.engine.behavior.ICompositeCacheAttributes getCacheAttributes()
        Specified by:
        getCacheAttributes in interface org.apache.commons.jcs.access.behavior.ICacheAccessManagement
      • setCacheAttributes

        public void setCacheAttributes​(org.apache.commons.jcs.engine.behavior.ICompositeCacheAttributes cattr)
        Specified by:
        setCacheAttributes in interface org.apache.commons.jcs.access.behavior.ICacheAccessManagement
      • freeMemoryElements

        public int freeMemoryElements​(int numberToFree)
                               throws org.apache.commons.jcs.access.exception.CacheException
        Specified by:
        freeMemoryElements in interface org.apache.commons.jcs.access.behavior.ICacheAccessManagement
        Throws:
        org.apache.commons.jcs.access.exception.CacheException
      • getStatistics

        public org.apache.commons.jcs.engine.stats.behavior.ICacheStats getStatistics()
        Specified by:
        getStatistics in interface org.apache.commons.jcs.access.behavior.ICacheAccessManagement
      • getStats

        public String getStats()
        Specified by:
        getStats in interface org.apache.commons.jcs.access.behavior.ICacheAccessManagement
      • get

        public V get​(Object name)
        Specified by:
        get in interface org.apache.commons.jcs.access.behavior.ICacheAccess<K,​V>
      • getMatching

        public Map<K,​V> getMatching​(String pattern)
        Specified by:
        getMatching in interface org.apache.commons.jcs.access.behavior.ICacheAccess<K,​V>
      • putSafe

        public void putSafe​(Object name,
                            Object obj)
                     throws org.apache.commons.jcs.access.exception.CacheException
        Specified by:
        putSafe in interface org.apache.commons.jcs.access.behavior.ICacheAccess<K,​V>
        Throws:
        org.apache.commons.jcs.access.exception.CacheException
      • put

        public void put​(Object name,
                        Object obj)
                 throws org.apache.commons.jcs.access.exception.CacheException
        Specified by:
        put in interface org.apache.commons.jcs.access.behavior.ICacheAccess<K,​V>
        Throws:
        org.apache.commons.jcs.access.exception.CacheException
      • put

        public void put​(Object name,
                        Object obj,
                        org.apache.commons.jcs.engine.behavior.IElementAttributes attr)
                 throws org.apache.commons.jcs.access.exception.CacheException
        Specified by:
        put in interface org.apache.commons.jcs.access.behavior.ICacheAccess<K,​V>
        Throws:
        org.apache.commons.jcs.access.exception.CacheException
      • getCacheElement

        public org.apache.commons.jcs.engine.behavior.ICacheElement<K,​V> getCacheElement​(Object name)
        Specified by:
        getCacheElement in interface org.apache.commons.jcs.access.behavior.ICacheAccess<K,​V>
      • getCacheElements

        public Map<K,​org.apache.commons.jcs.engine.behavior.ICacheElement<K,​V>> getCacheElements​(Set<K> names)
        Specified by:
        getCacheElements in interface org.apache.commons.jcs.access.behavior.ICacheAccess<K,​V>
      • getMatchingCacheElements

        public Map<K,​org.apache.commons.jcs.engine.behavior.ICacheElement<K,​V>> getMatchingCacheElements​(String pattern)
        Specified by:
        getMatchingCacheElements in interface org.apache.commons.jcs.access.behavior.ICacheAccess<K,​V>
      • remove

        public void remove​(Object name)
                    throws org.apache.commons.jcs.access.exception.CacheException
        Specified by:
        remove in interface org.apache.commons.jcs.access.behavior.ICacheAccess<K,​V>
        Throws:
        org.apache.commons.jcs.access.exception.CacheException
      • resetElementAttributes

        public void resetElementAttributes​(Object name,
                                           org.apache.commons.jcs.engine.behavior.IElementAttributes attributes)
                                    throws org.apache.commons.jcs.access.exception.CacheException
        Specified by:
        resetElementAttributes in interface org.apache.commons.jcs.access.behavior.ICacheAccess<K,​V>
        Throws:
        org.apache.commons.jcs.access.exception.CacheException
      • getElementAttributes

        public org.apache.commons.jcs.engine.behavior.IElementAttributes getElementAttributes​(Object name)
                                                                                       throws org.apache.commons.jcs.access.exception.CacheException
        Specified by:
        getElementAttributes in interface org.apache.commons.jcs.access.behavior.ICacheAccess<K,​V>
        Throws:
        org.apache.commons.jcs.access.exception.CacheException