Package org.nuxeo.ecm.core.versioning
Class OrphanVersionCleanupListener
java.lang.Object
org.nuxeo.ecm.core.versioning.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 Summary
Modifier and TypeFieldDescriptionstatic final long
Deprecated.static final String
Deprecated.since 2023, we are now relying on BAF for orphan versions cleanup -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected long
Deprecated.since 2023, we are now relying on BAF for orphan versions cleanupvoid
handleEvent
(EventBundle events) Deprecated.Handles the set of events that were raised during the life of an user operation.
-
Field Details
-
DEFAULT_COMMIT_SIZE
public static final long DEFAULT_COMMIT_SIZEDeprecated.- See Also:
-
DEFAULT_COMMIT_SIZE_PROP
Deprecated.since 2023, we are now relying on BAF for orphan versions cleanupConfiguration property for the maximum number of orphan versions to delete in one transaction. Default is 1000L.- See Also:
-
-
Constructor Details
-
OrphanVersionCleanupListener
public OrphanVersionCleanupListener()Deprecated.
-
-
Method Details
-
getCommitSize
Deprecated.since 2023, we are now relying on BAF for orphan versions cleanupGets the maximum number of orphan versions to delete in one transaction. -
handleEvent
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 interfacePostCommitEventListener
- Parameters:
events
- the events to handle
-