public class AllPathsCache extends Object
additional parents
.Modifier and Type | Field and Description |
---|---|
protected NodeCache |
cache |
protected PathFactory |
pathFactory |
protected NodeCache |
removedCache |
Constructor and Description |
---|
AllPathsCache(NodeCache cache,
NodeCache removedCache,
ExecutionContext context) |
AllPathsCache(NodeCache cache,
NodeCache removedCache,
PathFactory pathFactory) |
Modifier and Type | Method and Description |
---|---|
protected Set<NodeKey> |
getAdditionalParentKeys(CachedNode node,
NodeCache cache) |
NodeCache |
getCache() |
Iterable<Path> |
getPaths(CachedNode node)
Get all of the paths through which the specified node is accessible, including all paths based upon the node's
parent (which can potentially have multiple paths) and upon the node's
additional parents (which each can potentially have multiple paths). |
boolean |
removePath(NodeKey key) |
protected final NodeCache cache
protected final NodeCache removedCache
protected final PathFactory pathFactory
public AllPathsCache(NodeCache cache, NodeCache removedCache, ExecutionContext context)
public AllPathsCache(NodeCache cache, NodeCache removedCache, PathFactory pathFactory)
public NodeCache getCache()
public Iterable<Path> getPaths(CachedNode node)
parent
(which can potentially have multiple paths) and upon the node's
additional parents
(which each can potentially have multiple paths).node
- the node for which the paths are to be returned; may not be nullpublic boolean removePath(NodeKey key)
protected Set<NodeKey> getAdditionalParentKeys(CachedNode node, NodeCache cache)
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.