Class JournalGarbageCollector
java.lang.Object
org.apache.jackrabbit.oak.plugins.document.JournalGarbageCollector
The JournalGarbageCollector can clean up JournalEntries that are older than a
particular age.
It would typically be invoked in conjunction with the VersionGarbageCollector but must not be confused with that one - 'journal' refers to the separate collection that contains changed paths per background writes used for observation.
-
Constructor Summary
ConstructorsConstructorDescriptionJournalGarbageCollector
(DocumentNodeStore nodeStore, long maxRevisionAgeMillis) -
Method Summary
Modifier and TypeMethodDescriptionint
gc()
Deletes entries in the journal that are older thangetMaxRevisionAgeMillis()
.
-
Constructor Details
-
JournalGarbageCollector
-
-
Method Details
-
gc
public int gc()Deletes entries in the journal that are older thangetMaxRevisionAgeMillis()
.- Returns:
- the number of entries that have been removed
-
getTailRevision
-