Package org.apache.jackrabbit.spi
Interface ItemInfoCache
- All Known Implementing Classes:
ItemInfoCacheImpl
public interface ItemInfoCache
ItemInfoCache instances are responsible for caching
ItemInfos along with an opaque generation counter. Implementations
are free on the particular caching policy. That is, how long (if at all) item
infos are cached.
An ItemInfoCache is supplied per session from the RepositoryService. It is used
to cache ItemInfos read from the RepositoryService.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classItemInfoCache.Entry<T extends ItemInfo>This class represents a cache entry. -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Clear the cache and dispose all entries.getNodeInfo(NodeId nodeId) Retrieve a cache entry for the givennodeIdornullif no such entry is in the cache.getPropertyInfo(PropertyId propertyId) Retrieve a cache entry for the givenpropertyIdornullif no such entry is in the cache.void
-
Method Details
-
getNodeInfo
Retrieve a cache entry for the givennodeIdornullif no such entry is in the cache.- Parameters:
nodeId- id of the entry to lookup.- Returns:
- a
Entry<NodeInfo>instance ornullif not found.
-
getPropertyInfo
Retrieve a cache entry for the givenpropertyIdornullif no such entry is in the cache.- Parameters:
propertyId- id of the entry to lookup.- Returns:
- a
Entry<PropertyInfo>instance ornullif not found.
-
put
- Parameters:
info-generation-
-
dispose
void dispose()Clear the cache and dispose all entries.
-