public interface ItemInfoCache
ItemInfoCache
instances are responsible for caching
ItemInfo
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.
An ItemInfoCache
is supplied per session from the RepositoryService
. It is used
to cache ItemInfo
s read from the RepositoryService
.Modifier and Type | Interface and Description |
---|---|
static class |
ItemInfoCache.Entry<T extends ItemInfo>
This class represents a cache entry.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Clear the cache and dispose all entries.
|
ItemInfoCache.Entry<NodeInfo> |
getNodeInfo(NodeId nodeId)
Retrieve a cache entry for the given
nodeId or null
if no such entry is in the cache. |
ItemInfoCache.Entry<PropertyInfo> |
getPropertyInfo(PropertyId propertyId)
Retrieve a cache entry for the given
propertyId or null
if no such entry is in the cache. |
void |
put(ItemInfo info,
long generation)
|
ItemInfoCache.Entry<NodeInfo> getNodeInfo(NodeId nodeId)
nodeId
or null
if no such entry is in the cache.nodeId
- id of the entry to lookup.Entry<NodeInfo>
instance or null
if not found.ItemInfoCache.Entry<PropertyInfo> getPropertyInfo(PropertyId propertyId)
propertyId
or null
if no such entry is in the cache.propertyId
- id of the entry to lookup.Entry<PropertyInfo>
instance or
null
if not found.void put(ItemInfo info, long generation)
info
- generation
- void dispose()
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.