Class JournalGarbageCollector


  • public class JournalGarbageCollector
    extends java.lang.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 Detail

      • JournalGarbageCollector

        public JournalGarbageCollector​(DocumentNodeStore nodeStore,
                                       long maxRevisionAgeMillis)
    • Method Detail

      • 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()