public class SecondaryStoreCache extends Object implements DocumentNodeStateCache
| Modifier and Type | Field and Description |
|---|---|
static org.apache.jackrabbit.oak.plugins.document.secondary.SecondaryStoreRootObserver |
NOOP |
NOOP| Constructor and Description |
|---|
SecondaryStoreCache(org.apache.jackrabbit.oak.spi.state.NodeStore nodeStore,
NodeStateDiffer differ,
org.apache.jackrabbit.oak.spi.filter.PathFilter pathFilter,
org.apache.jackrabbit.oak.stats.StatisticsProvider statisticsProvider) |
| Modifier and Type | Method and Description |
|---|---|
void |
contentChanged(@NotNull AbstractDocumentNodeState root) |
@Nullable AbstractDocumentNodeState |
getDocumentNodeState(String path,
RevisionVector rootRevision,
RevisionVector lastRev)
Get the node for the given path and revision.
|
boolean |
isCached(String path)
Determines if given path is cached by this implementation
|
public static final org.apache.jackrabbit.oak.plugins.document.secondary.SecondaryStoreRootObserver NOOP
public SecondaryStoreCache(org.apache.jackrabbit.oak.spi.state.NodeStore nodeStore, NodeStateDiffer differ, org.apache.jackrabbit.oak.spi.filter.PathFilter pathFilter, org.apache.jackrabbit.oak.stats.StatisticsProvider statisticsProvider)
@Nullable public @Nullable AbstractDocumentNodeState getDocumentNodeState(String path, RevisionVector rootRevision, RevisionVector lastRev)
DocumentNodeStateCachegetDocumentNodeState in interface DocumentNodeStateCachepath - the path of the node.rootRevision - revision of root NodeStatelastRev - last revision of the node at given pathnull would be returnedpublic boolean isCached(String path)
DocumentNodeStateCacheisCached in interface DocumentNodeStateCachepath - path to checkpublic void contentChanged(@NotNull
@NotNull AbstractDocumentNodeState root)
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.