Class TestLoadableRegistrableCacheTestKey
- java.lang.Object
-
- de.hybris.platform.regioncache.key.AbstractCacheKey
-
- de.hybris.platform.regioncache.key.AbstractRegistrableCacheKey
-
- de.hybris.platform.regioncache.test.TestLoadableRegistrableCacheTestKey
-
- All Implemented Interfaces:
CacheValueLoader,CacheKey,RegistrableCacheKey<java.lang.String>
public class TestLoadableRegistrableCacheTestKey extends AbstractRegistrableCacheKey implements CacheValueLoader
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.regioncache.key.AbstractCacheKey
cachedHash, tenantId, typeCode, valueType
-
-
Constructor Summary
Constructors Constructor Description TestLoadableRegistrableCacheTestKey(java.lang.String tenantId, java.lang.String[] dependentTypes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)inthashCode()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.java.lang.StringtoString()-
Methods inherited from class de.hybris.platform.regioncache.key.AbstractRegistrableCacheKey
getDependentTypeGenerations, getDependentTypes, getTypeCode, setDependentTypeGenerations
-
Methods inherited from class de.hybris.platform.regioncache.key.AbstractCacheKey
getCacheValueType, getTenantId
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.regioncache.key.CacheKey
getCacheValueType, getTenantId
-
-
-
-
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
-
toString
public java.lang.String toString()
- Overrides:
toStringin classAbstractRegistrableCacheKey
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractCacheKey
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classAbstractCacheKey
-
-