Package de.hybris.platform.sap.sapordermgmtbol.transaction.salesdocument.backend.impl.messagemapping
Class MockCacheAccess
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
-
Field Summary
Fields inherited from class de.hybris.platform.regioncache.region.impl.EHCacheRegion
cacheMap, lifecycleCallback, manager, stats -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class de.hybris.platform.sap.core.bol.cache.impl.CacheAccessImpl
clearCache, getKeys, getNumObjects, getWithLoader, putIfAbsent, remove, setHandledTypesMethods 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
-
Constructor Details
-
MockCacheAccess
public MockCacheAccess()
-
-
Method Details
-
get
Description copied from interface:CacheAccessGets an object from the cache for the given key.- Specified by:
getin interfaceCacheAccess- Overrides:
getin classCacheAccessImpl- Parameters:
key- name of object which should be retrieved from the cache- Returns:
- the object or
nullif the object could not be found in the cache
-
put
Description copied from interface:CacheAccessPuts an object into the cache region.- Specified by:
putin interfaceCacheAccess- Overrides:
putin classCacheAccessImpl- Parameters:
key- key of objectobject- object which is put into the cache- Throws:
SAPHybrisCacheException- thrown if something goes wrong while adding an object to cache
-