|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ItemInfoCache
ItemInfoCache
instances are responsible for caching ItemInfo
s along with an
opaque generation counter. Implementors 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
.
RepositoryService.getItemInfos(SessionInfo, NodeId)
,
ItemInfoCacheImpl
Nested Class Summary | |
---|---|
static class |
ItemInfoCache.Entry<T extends ItemInfo>
This class represents a cache entry. |
Method Summary | |
---|---|
void |
dispose()
Clear the cache and dispose all entries. |
ItemInfoCache.Entry<NodeInfo> |
getNodeInfo(NodeId nodeId)
Retreive a cache entry for the given nodeId or null
if no such entry is in the cache. |
ItemInfoCache.Entry<PropertyInfo> |
getPropertyInfo(PropertyId propertyId)
Retreive a cache entry for the given propertyId or null
if no such entry is in the cache. |
void |
put(ItemInfo info,
long generation)
Create a ItemInfoCache.Entry for info and generation and put it into
the cache. |
Method Detail |
---|
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 foundItemInfoCache.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 foundvoid put(ItemInfo info, long generation)
ItemInfoCache.Entry
for info
and generation
and put it into
the cache.
info
- generation
- void dispose()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |