org.modeshape.graph.connector.base
Class AbstractNodeCachingRepositorySource<KeyType,NodeType extends Node>
java.lang.Object
org.modeshape.graph.connector.base.AbstractRepositorySource
org.modeshape.graph.connector.base.AbstractNodeCachingRepositorySource<KeyType,NodeType>
- All Implemented Interfaces:
- Serializable, Referenceable, BaseRepositorySource, RepositorySource
- Direct Known Subclasses:
- DiskSource, FileSystemSource, JdbcMetadataSource, SvnRepositorySource
public abstract class AbstractNodeCachingRepositorySource<KeyType,NodeType extends Node>
- extends AbstractRepositorySource
- See Also:
- Serialized Form
Methods inherited from class org.modeshape.graph.connector.base.AbstractRepositorySource |
areUpdatesAllowed, close, getDefaultCachePolicy, getName, getRepositoryContext, getRetryLimit, getRootNodeUuid, getRootNodeUuidObject, initialize, isCreatingWorkspacesAllowed, setCachePolicy, setName, setRetryLimit, setRootNodeUuid, setRootNodeUuidObject, valuesFrom |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NODE_CACHE_POLICY
protected static final String NODE_CACHE_POLICY
- See Also:
- Constant Field Values
DEFAULT_NODE_CACHE_POLICY
public final NodeCachePolicy<KeyType,NodeType extends Node> DEFAULT_NODE_CACHE_POLICY
- The initial cache policy. The default is to not cache.
AbstractNodeCachingRepositorySource
public AbstractNodeCachingRepositorySource()
getNodeCachePolicy
public NodeCachePolicy<KeyType,NodeType> getNodeCachePolicy()
- Get the node cache policy for this source, or null if the global node cache policy should be used
- Returns:
- the node cache policy; never null
setNodeCachePolicy
public void setNodeCachePolicy(NodeCachePolicy<KeyType,NodeType> nodeCachePolicy)
- Parameters:
nodeCachePolicy
- Sets defaultCachePolicy to the specified value.
addNodeCachePolicyChangedListener
public void addNodeCachePolicyChangedListener(NodeCachePolicyChangedListener<KeyType,NodeType> listener)
removeNodeCachePolicyChangedListener
public void removeNodeCachePolicyChangedListener(NodeCachePolicyChangedListener<KeyType,NodeType> listener)
addNodeCachePolicyReference
protected void addNodeCachePolicyReference(Reference ref)
Copyright © 2008-2012 JBoss, a division of Red Hat. All Rights Reserved.