Class MemoryDiffCache
java.lang.Object
org.apache.jackrabbit.oak.plugins.document.MemoryDiffCache
An in-memory diff cache implementation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
protected class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.apache.jackrabbit.guava.common.cache.Cache<CacheValue,
StringValue> Diff cache.protected final CacheStats
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable String
getChanges
(@NotNull RevisionVector from, @NotNull RevisionVector to, @NotNull Path path, @Nullable org.apache.jackrabbit.oak.plugins.document.DiffCache.Loader loader) @NotNull Iterable<CacheStats>
getStats()
void
@NotNull org.apache.jackrabbit.oak.plugins.document.DiffCache.Entry
newEntry
(@NotNull RevisionVector from, @NotNull RevisionVector to, boolean local)
-
Field Details
-
diffCache
Diff cache. Key: PathRev, value: StringValue -
diffCacheStats
-
-
Constructor Details
-
MemoryDiffCache
-
-
Method Details
-
getChanges
@Nullable public @Nullable String getChanges(@NotNull @NotNull RevisionVector from, @NotNull @NotNull RevisionVector to, @NotNull @NotNull Path path, @Nullable @Nullable org.apache.jackrabbit.oak.plugins.document.DiffCache.Loader loader) -
newEntry
@NotNull public @NotNull org.apache.jackrabbit.oak.plugins.document.DiffCache.Entry newEntry(@NotNull @NotNull RevisionVector from, @NotNull @NotNull RevisionVector to, boolean local) -
getStats
-
invalidateAll
public void invalidateAll()
-