Class AbstractRegistrableCacheKey
- java.lang.Object
-
- de.hybris.platform.regioncache.key.AbstractCacheKey
-
- de.hybris.platform.regioncache.key.AbstractRegistrableCacheKey
-
- All Implemented Interfaces:
CacheKey,RegistrableCacheKey<java.lang.String>
- Direct Known Subclasses:
FlexibleSearch.FlexibleSearchCacheKey,TestLoadableRegistrableCacheTestKey,TestRegistrableCacheKey
public abstract class AbstractRegistrableCacheKey extends AbstractCacheKey implements RegistrableCacheKey<java.lang.String>
All units using cache registry (currently flexible search) should use this class to define cache key.
This is used by CacheController to decide whether using cache registry or not.
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.regioncache.key.AbstractCacheKey
cachedHash, tenantId, typeCode, valueType
-
-
Constructor Summary
Constructors Constructor Description AbstractRegistrableCacheKey(java.lang.String tenantId, java.lang.String[] dependentTypes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long[]getDependentTypeGenerations()gets last versions of the corresponding type fromRegistrableCacheKey.getDependentTypes()java.lang.String[]getDependentTypes()All registrable units should define dependent types.
In case of invalidation of one of the dependent type registrable cache unit gets invalidated too.java.lang.ObjectgetTypeCode()Gets code from typesystem.voidsetDependentTypeGenerations(long[] dependentTypeGeneration)lazily loaded generationjava.lang.StringtoString()-
Methods inherited from class de.hybris.platform.regioncache.key.AbstractCacheKey
equals, getCacheValueType, getTenantId, hashCode
-
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
-
getTypeCode
public java.lang.Object getTypeCode()
Description copied from class:AbstractCacheKeyGets code from typesystem.- Specified by:
getTypeCodein interfaceCacheKey- Overrides:
getTypeCodein classAbstractCacheKey
-
toString
public java.lang.String toString()
- Overrides:
toStringin classAbstractCacheKey
-
setDependentTypeGenerations
public void setDependentTypeGenerations(long[] dependentTypeGeneration)
Description copied from interface:RegistrableCacheKeylazily loaded generation- Specified by:
setDependentTypeGenerationsin interfaceRegistrableCacheKey<java.lang.String>
-
getDependentTypeGenerations
public long[] getDependentTypeGenerations()
Description copied from interface:RegistrableCacheKeygets last versions of the corresponding type fromRegistrableCacheKey.getDependentTypes()- Specified by:
getDependentTypeGenerationsin interfaceRegistrableCacheKey<java.lang.String>
-
getDependentTypes
public java.lang.String[] getDependentTypes()
Description copied from interface:RegistrableCacheKeyAll registrable units should define dependent types.
In case of invalidation of one of the dependent type registrable cache unit gets invalidated too.- Specified by:
getDependentTypesin interfaceRegistrableCacheKey<java.lang.String>
-
-