public class OrphanVersionCleanupListener extends Object implements PostCommitEventListener
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_COMMIT_SIZE |
static String |
DEFAULT_COMMIT_SIZE_PROP
Configuration property for the maximum number of orphan versions to delete in one transaction.
|
Constructor and Description |
---|
OrphanVersionCleanupListener() |
Modifier and Type | Method and Description |
---|---|
protected long |
getCommitSize()
Gets the maximum number of orphan versions to delete in one transaction.
|
void |
handleEvent(EventBundle events)
Handles the set of events that were raised during the life of an user operation.
|
public static final long DEFAULT_COMMIT_SIZE
public static final String DEFAULT_COMMIT_SIZE_PROP
public OrphanVersionCleanupListener()
protected long getCommitSize()
public void handleEvent(EventBundle events)
PostCommitEventListener
The events are fired as a BundleEvent
after the transaction is committed.
handleEvent
in interface PostCommitEventListener
events
- the events to handleCopyright © 2018 Nuxeo. All rights reserved.