public interface NodeCache extends CachedNodeSupplier
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears all changes in the cache.
|
Iterator<NodeKey> |
getAllNodeKeys()
Get an iterator over all node keys within this cache.
|
Iterator<NodeKey> |
getAllNodeKeysAtAndBelow(NodeKey startingKey)
Get an iterator over all keys for the supplied node and all its descendants.
|
CachedNode |
getNode(ChildReference reference)
Get the cached representation of the node as represented by the supplied child reference.
|
NodeKey |
getRootKey()
Get the node key for the root node.
|
NodeCache |
unwrap()
Unwrap this instance.
|
getNode
void clear()
NodeKey getRootKey()
CachedNode getNode(ChildReference reference)
getNode(reference.getKey());
reference
- the child node reference; may not be nullIterator<NodeKey> getAllNodeKeys()
Iterator<NodeKey> getAllNodeKeysAtAndBelow(NodeKey startingKey)
startingKey
- the key for the node to start; may not be nullNodeCache unwrap()
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.