Class TestCacheKeyFactory.TestLegacyCacheKeyWithLoader
- java.lang.Object
-
- de.hybris.platform.regioncache.key.AbstractCacheKey
-
- de.hybris.platform.regioncache.key.legacy.LegacyCacheKey
-
- de.hybris.platform.regioncache.test.TestCacheKeyFactory.TestLegacyCacheKeyWithLoader
-
- All Implemented Interfaces:
CacheValueLoader,CacheKey
- Enclosing class:
- TestCacheKeyFactory
public static class TestCacheKeyFactory.TestLegacyCacheKeyWithLoader extends LegacyCacheKey implements CacheValueLoader
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.regioncache.key.legacy.LegacyCacheKey
key
-
Fields inherited from class de.hybris.platform.regioncache.key.AbstractCacheKey
cachedHash, tenantId, typeCode, valueType
-
-
Constructor Summary
Constructors Constructor Description TestLegacyCacheKeyWithLoader(java.lang.String typeCode, java.lang.String tenantId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectload(CacheKey key)Used by cache region to load missing value.
This method does not have to be thread safe.
If CacheValueLoadException thrown unit is not added to cache.-
Methods inherited from class de.hybris.platform.regioncache.key.legacy.LegacyCacheKey
equals, getLegacyKey, hashCode, toString
-
Methods inherited from class de.hybris.platform.regioncache.key.AbstractCacheKey
getCacheValueType, getTenantId, getTypeCode
-
-
-
-
Method Detail
-
load
public java.lang.Object load(CacheKey key) throws CacheValueLoadException
Description copied from interface:CacheValueLoaderUsed by cache region to load missing value.
This method does not have to be thread safe.
If CacheValueLoadException thrown unit is not added to cache.- Specified by:
loadin interfaceCacheValueLoader- Throws:
CacheValueLoadException
-
-