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:
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 MockCacheAccess()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectget(java.lang.Object key)Gets an object from the cache for the given key.voidput(java.lang.Object key, java.lang.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
-
-
-
-
Method Detail
-
get
public java.lang.Object get(java.lang.Object key)
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
public void put(java.lang.Object key, java.lang.Object object) throws SAPHybrisCacheExceptionDescription 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
-
-