|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.modeshape.graph.connector.base.cache.NoCachePolicy<KeyType,NodeType>
KeyType
- NodeType
- @Immutable public class NoCachePolicy<KeyType,NodeType extends Node>
Trivial path cache policy implementation that performs no caching at all
Constructor Summary | |
---|---|
NoCachePolicy()
|
Method Summary | |
---|---|
long |
getTimeToLive()
Get the system time in milliseconds before which the node data remains valid. |
org.modeshape.graph.connector.base.cache.NoCachePolicy.NullCache |
newCache()
Return a new cache instance that uses this policy . |
boolean |
shouldCache(NodeType node)
Indicates whether the node should be cached . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NoCachePolicy()
Method Detail |
---|
public boolean shouldCache(NodeType node)
NodeCachePolicy
shouldCache
in interface NodeCachePolicy<KeyType,NodeType extends Node>
node
- the node
PathCachePolicy.shouldCache(PathNode)
public long getTimeToLive()
CachePolicy
getTimeToLive
in interface CachePolicy
public org.modeshape.graph.connector.base.cache.NoCachePolicy.NullCache newCache()
NodeCachePolicy
uses this policy
.
newCache
in interface NodeCachePolicy<KeyType,NodeType extends Node>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |