java.lang.Object
de.hybris.platform.regioncache.region.impl.EHCacheRegion
de.hybris.platform.sap.core.bol.cache.impl.CacheAccessImpl
de.hybris.platform.sap.sapordermgmtbol.transaction.salesdocument.backend.impl.messagemapping.MockCacheAccess
All Implemented Interfaces:
de.hybris.platform.regioncache.region.CacheRegion, CacheAccess

public class MockCacheAccess extends CacheAccessImpl
  • Field Summary

    Fields inherited from class de.hybris.platform.regioncache.region.impl.EHCacheRegion

    cacheMap, lifecycleCallback, manager, stats
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    get(Object key)
    Gets an object from the cache for the given key.
    void
    put(Object key, Object object)
    Puts an object into the cache region.

    Methods inherited from class de.hybris.platform.sap.core.bol.cache.impl.CacheAccessImpl

    clearCache, getKeys, getNumObjects, getWithLoader, putIfAbsent, remove, setHandledTypes

    Methods inherited from class de.hybris.platform.regioncache.region.impl.EHCacheRegion

    containsKey, createCacheConfiguration, createCacheEventListener, createCacheStatistics, destroy, get, getAllKeys, getCacheMaxEntries, getCacheRegionStatistics, getHandledTypes, getMaxReachedSize, getName, getWithLoader, init, invalidate, isStatsEnabled, registerLifecycleCallback, remove, setStatsEnabled, toString, unwrap

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • MockCacheAccess

      public MockCacheAccess()
  • Method Details

    • get

      public Object get(Object key)
      Description copied from interface: CacheAccess
      Gets an object from the cache for the given key.
      Specified by:
      get in interface CacheAccess
      Overrides:
      get in class CacheAccessImpl
      Parameters:
      key - name of object which should be retrieved from the cache
      Returns:
      the object or null if the object could not be found in the cache
    • put

      public void put(Object key, Object object) throws SAPHybrisCacheException
      Description copied from interface: CacheAccess
      Puts an object into the cache region.
      Specified by:
      put in interface CacheAccess
      Overrides:
      put in class CacheAccessImpl
      Parameters:
      key - key of object
      object - object which is put into the cache
      Throws:
      SAPHybrisCacheException - thrown if something goes wrong while adding an object to cache