Class OrphanVersionCleanupListener

  • All Implemented Interfaces:
    PostCommitEventListener

    @Deprecated
    public class OrphanVersionCleanupListener
    extends Object
    implements PostCommitEventListener
    Deprecated.
    since 2021.44 there is now an orphan versions Full GC bulk action (garbageCollectOrphanVersions)
    Asynchronous listener that calls the orphan versions cleanup service. Designed to be called periodically by a scheduler.
    Since:
    9.1
    • Field Detail

      • DEFAULT_COMMIT_SIZE

        public static final long DEFAULT_COMMIT_SIZE
        Deprecated.
        See Also:
        Constant Field Values
      • DEFAULT_COMMIT_SIZE_PROP

        @Deprecated
        public static final String DEFAULT_COMMIT_SIZE_PROP
        Deprecated.
        since 2023, we are now relying on BAF for orphan versions cleanup
        Configuration property for the maximum number of orphan versions to delete in one transaction. Default is 1000L.
        See Also:
        Constant Field Values
    • Constructor Detail

      • OrphanVersionCleanupListener

        public OrphanVersionCleanupListener()
        Deprecated.
    • Method Detail

      • getCommitSize

        @Deprecated
        protected long getCommitSize()
        Deprecated.
        since 2023, we are now relying on BAF for orphan versions cleanup
        Gets the maximum number of orphan versions to delete in one transaction.
      • handleEvent

        public void handleEvent​(EventBundle events)
        Deprecated.
        Description copied from interface: PostCommitEventListener
        Handles the set of events that were raised during the life of an user operation.

        The events are fired as a BundleEvent after the transaction is committed.

        Specified by:
        handleEvent in interface PostCommitEventListener
        Parameters:
        events - the events to handle