Package org.apache.jackrabbit.spi
Interface ItemInfoCache
-
- All Known Implementing Classes:
ItemInfoCacheImpl
public interface ItemInfoCacheItemInfoCacheinstances are responsible for cachingItemInfos 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. AnItemInfoCacheis supplied per session from theRepositoryService. It is used to cacheItemInfos read from theRepositoryService.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classItemInfoCache.Entry<T extends ItemInfo>This class represents a cache entry.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddispose()Clear the cache and dispose all entries.ItemInfoCache.Entry<NodeInfo>getNodeInfo(NodeId nodeId)Retrieve a cache entry for the givennodeIdornullif no such entry is in the cache.ItemInfoCache.Entry<PropertyInfo>getPropertyInfo(PropertyId propertyId)Retrieve a cache entry for the givenpropertyIdornullif no such entry is in the cache.voidput(ItemInfo info, long generation)
-
-
-
Method Detail
-
getNodeInfo
ItemInfoCache.Entry<NodeInfo> getNodeInfo(NodeId nodeId)
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
ItemInfoCache.Entry<PropertyInfo> getPropertyInfo(PropertyId propertyId)
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
void put(ItemInfo info, long generation)
- Parameters:
info-generation-
-
dispose
void dispose()
Clear the cache and dispose all entries.
-
-