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 Details

    • JournalGarbageCollector

      public JournalGarbageCollector(DocumentNodeStore nodeStore, long maxRevisionAgeMillis)
  • Method Details

    • gc

      public int gc()
      Deletes entries in the journal that are older than getMaxRevisionAgeMillis().
      Returns:
      the number of entries that have been removed
    • getTailRevision

      public Revision getTailRevision()