|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
KeyType - the type of the unique identifier for the nodes that are to be cachedNodeType - the type of nodes that are to be cachedpublic interface NodeCachePolicy<KeyType,NodeType extends Node>

Cache policy implementation for use with workspace caches.
| Method Summary | ||
|---|---|---|
|
newCache()
Return a new cache instance that uses this policy. |
|
boolean |
shouldCache(NodeType node)
Indicates whether the node should be cached . |
|
| Methods inherited from interface org.modeshape.graph.cache.CachePolicy |
|---|
getTimeToLive |
| Method Detail |
|---|
boolean shouldCache(NodeType node)
node - the node that may or may not be cached; may not be null
<CacheType extends NodeCache<KeyType,NodeType>> CacheType newCache()
uses this policy.
CacheType - the type of cache being returned
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||