Package de.hybris.platform.regioncache
Interface CacheRegistry
-
@Deprecated public interface CacheRegistryDeprecated.since 5.0Keeps an information about relationship between a type and a key. One key can depend on several types, and multiple keys can be "registered" on a single type. Registry allows to perform bulk invalidation of multiple keys using a single type. Registry implementations must be thread safe (there's no external synchronization!)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidclear()Deprecated.Clears registry.voidevict(RegistrableCacheKey key)Deprecated.Handles eviction, that is a removal of a single key.java.util.Collection<RegistrableCacheKey>invalidate(java.lang.Object typeCode)Deprecated.Invalidates a single typeCode in the registry.voidregister(RegistrableCacheKey key)Deprecated.Registers a RegistrableCacheKey in the registry using every typeCode the key depends on.
-
-
-
Method Detail
-
register
void register(RegistrableCacheKey key)
Deprecated.Registers a RegistrableCacheKey in the registry using every typeCode the key depends on. See:RegistrableCacheKey.getDependentTypes()
-
invalidate
java.util.Collection<RegistrableCacheKey> invalidate(java.lang.Object typeCode)
Deprecated.Invalidates a single typeCode in the registry.
We are not removing entries (queries) from registry in this method. Because we cannot be sure if isAllowInvalidation() in cache controller actually allows to remove it from region.- Returns:
- A collection of keys that have been registered on given typeCode prior to invalidation.
-
evict
void evict(RegistrableCacheKey key)
Deprecated.Handles eviction, that is a removal of a single key.
-
clear
void clear()
Deprecated.Clears registry. After this method completes, registry does not contain any mappings.
-
-