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
keyFields inherited from class de.hybris.platform.regioncache.key.AbstractCacheKey
cachedHash, tenantId, typeCode, valueType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanThis has to be identical as in AbstractCacheUnitlong[]gets last versions of the corresponding type fromRegistrableCacheKey.getDependentTypes()abstract T[]All registrable units should define dependent types.
In case of invalidation of one of the dependent type registrable cache unit gets invalidated too.Gets code from typesystem.final inthashCode()This has to be identical as in AbstractCacheUnitvoidsetDependentTypeGenerations(long[] dependentTypeGeneration) lazily loaded generationMethods inherited from class de.hybris.platform.regioncache.key.legacy.LegacyCacheKey
getLegacyKey, toStringMethods inherited from class de.hybris.platform.regioncache.key.AbstractCacheKey
getCacheValueType, getTenantIdMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface de.hybris.platform.regioncache.key.CacheKey
getCacheValueType, getTenantId
-
Constructor Details
-
AbstractLegacyRegistrableCacheKey
-
-
Method Details
-
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
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
This has to be identical as in AbstractCacheUnit- Overrides:
equalsin classLegacyCacheKey
-