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
Fields Modifier and Type Field Description static long
DEFAULT_COMMIT_SIZE
Deprecated.static String
DEFAULT_COMMIT_SIZE_PROP
Deprecated.since 2023, we are now relying on BAF for orphan versions cleanup
-
Constructor Summary
Constructors Constructor Description OrphanVersionCleanupListener()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected long
getCommitSize()
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 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 cleanupConfiguration property for the maximum number of orphan versions to delete in one transaction. Default is 1000L.- See Also:
- Constant Field Values
-
-
Method Detail
-
getCommitSize
@Deprecated protected long 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
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 interfacePostCommitEventListener
- Parameters:
events
- the events to handle
-
-