Class JournalGarbageCollector
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.document.JournalGarbageCollector
-
public class JournalGarbageCollector extends Object
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
Constructors Constructor Description JournalGarbageCollector(DocumentNodeStore nodeStore, long maxRevisionAgeMillis)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
gc()
Deletes entries in the journal that are older thangetMaxRevisionAgeMillis()
.Revision
getTailRevision()
-
-
-
Constructor Detail
-
JournalGarbageCollector
public JournalGarbageCollector(DocumentNodeStore nodeStore, long maxRevisionAgeMillis)
-
-
Method Detail
-
gc
public int gc()
Deletes entries in the journal that are older thangetMaxRevisionAgeMillis()
.- Returns:
- the number of entries that have been removed
-
getTailRevision
public Revision getTailRevision()
-
-