Package org.apache.jackrabbit.spi
Interface ItemInfoCache
-
- All Known Implementing Classes:
ItemInfoCacheImpl
public interface ItemInfoCache
ItemInfoCache
instances are responsible for cachingItemInfo
s 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. AnItemInfoCache
is supplied per session from theRepositoryService
. It is used to cacheItemInfo
s read from theRepositoryService
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ItemInfoCache.Entry<T extends ItemInfo>
This class represents a cache entry.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
dispose()
Clear the cache and dispose all entries.ItemInfoCache.Entry<NodeInfo>
getNodeInfo(NodeId nodeId)
Retrieve a cache entry for the givennodeId
ornull
if no such entry is in the cache.ItemInfoCache.Entry<PropertyInfo>
getPropertyInfo(PropertyId propertyId)
Retrieve a cache entry for the givenpropertyId
ornull
if no such entry is in the cache.void
put(ItemInfo info, long generation)
-
-
-
Method Detail
-
getNodeInfo
ItemInfoCache.Entry<NodeInfo> getNodeInfo(NodeId nodeId)
Retrieve a cache entry for the givennodeId
ornull
if no such entry is in the cache.- Parameters:
nodeId
- id of the entry to lookup.- Returns:
- a
Entry<NodeInfo>
instance ornull
if not found.
-
getPropertyInfo
ItemInfoCache.Entry<PropertyInfo> getPropertyInfo(PropertyId propertyId)
Retrieve a cache entry for the givenpropertyId
ornull
if no such entry is in the cache.- Parameters:
propertyId
- id of the entry to lookup.- Returns:
- a
Entry<PropertyInfo>
instance ornull
if not found.
-
put
void put(ItemInfo info, long generation)
- Parameters:
info
-generation
-
-
dispose
void dispose()
Clear the cache and dispose all entries.
-
-