Class AbstractLegacyRegistrableCacheKey<T>
- java.lang.Object
-
- de.hybris.platform.regioncache.key.AbstractCacheKey
-
- de.hybris.platform.regioncache.key.legacy.LegacyCacheKey
-
- de.hybris.platform.regioncache.key.legacy.AbstractLegacyRegistrableCacheKey<T>
-
- All Implemented Interfaces:
CacheKey,RegistrableCacheKey
- Direct Known Subclasses:
C2LManager.C2LCacheKey,FinderResult.FinderResultCacheKey,JaloTypeCacheUnit.JaloTypeCacheKey
public abstract class AbstractLegacyRegistrableCacheKey<T> extends LegacyCacheKey implements RegistrableCacheKey
Registrable legacy key abstraction for region cache
-
-
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 AbstractLegacyRegistrableCacheKey(java.lang.Object[] key, java.lang.String tenantId)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object object)This has to be identical as in AbstractCacheUnitlong[]getDependentTypeGenerations()gets last versions of the corresponding type fromRegistrableCacheKey.getDependentTypes()abstract T[]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.inthashCode()This has to be identical as in AbstractCacheUnitvoidsetDependentTypeGenerations(long[] dependentTypeGeneration)lazily loaded generation-
Methods inherited from class de.hybris.platform.regioncache.key.legacy.LegacyCacheKey
getLegacyKey, toString
-
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
-
getTypeCode
public java.lang.Object getTypeCode()
Description copied from class:AbstractCacheKeyGets code from typesystem.- Specified by:
getTypeCodein interfaceCacheKey- Overrides:
getTypeCodein classAbstractCacheKey
-
setDependentTypeGenerations
public void setDependentTypeGenerations(long[] dependentTypeGeneration)
Description copied from interface:RegistrableCacheKeylazily loaded generation- Specified by:
setDependentTypeGenerationsin interfaceRegistrableCacheKey<T>
-
getDependentTypeGenerations
public long[] getDependentTypeGenerations()
Description copied from interface:RegistrableCacheKeygets last versions of the corresponding type fromRegistrableCacheKey.getDependentTypes()- Specified by:
getDependentTypeGenerationsin interfaceRegistrableCacheKey<T>
-
hashCode
public final int hashCode()
This has to be identical as in AbstractCacheUnit- Overrides:
hashCodein classLegacyCacheKey
-
getDependentTypes
public abstract T[] 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<T>
-
equals
public final boolean equals(java.lang.Object object)
This has to be identical as in AbstractCacheUnit- Overrides:
equalsin classLegacyCacheKey
-
-