Interface DocumentNodeStateCache
-
- All Known Implementing Classes:
SecondaryStoreCache
public interface DocumentNodeStateCache
-
-
Field Summary
Fields Modifier and Type Field Description static DocumentNodeStateCache
NOOP
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable AbstractDocumentNodeState
getDocumentNodeState(Path path, RevisionVector rootRevision, RevisionVector lastRev)
Get the node for the given path and revision.boolean
isCached(Path path)
Determines if given path is cached by this implementation
-
-
-
Field Detail
-
NOOP
static final DocumentNodeStateCache NOOP
-
-
Method Detail
-
getDocumentNodeState
@Nullable @Nullable AbstractDocumentNodeState getDocumentNodeState(Path path, RevisionVector rootRevision, RevisionVector lastRev)
Get the node for the given path and revision.- Parameters:
path
- the path of the node.rootRevision
- revision of root NodeStatelastRev
- last revision of the node at given path- Returns:
- nodeState at given path or null. If given revision is not present or the
path is not cached then
null
would be returned
-
isCached
boolean isCached(Path path)
Determines if given path is cached by this implementation- Parameters:
path
- path to check- Returns:
- true if given path is cached
-
-