Class DefaultTrashRemovalManager
java.lang.Object
com.atlassian.confluence.impl.retention.manager.AbstractTrashRemovalManager
com.atlassian.confluence.impl.retention.manager.DefaultTrashRemovalManager
- All Implemented Interfaces:
TrashRemovalManager
- Since:
- 7.14.0
-
Field Summary
Fields inherited from class com.atlassian.confluence.impl.retention.manager.AbstractTrashRemovalManager
clusterLockExecutionService, DEFAULT_CONTENT_ID_OFFSET, eventPublisher, globalRetentionPolicyManager, jobStatusManager, retentionFeatureChecker, transactionManager, TRASH_REMOVAL_DELETE_BATCH_SIZE, trashManagerInternal, trashRuleEvaluator
-
Constructor Summary
ConstructorDescriptionDefaultTrashRemovalManager
(GlobalRetentionPolicyManager globalRetentionPolicyManager, TrashCleanupJobStatusManager jobStatusManager, TrashManagerInternal trashManagerInternal, org.springframework.transaction.PlatformTransactionManager transactionManager, RetentionFeatureChecker retentionFeatureChecker, TrashRuleEvaluator trashRuleEvaluator, com.atlassian.event.api.EventPublisher eventPublisher, ClusterLockExecutionService clusterLockExecutionService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Delete all trashed entities per trash retention rules Note: This may take a long time depend on number of trashed entities that fail retention rulesvoid
softRemove
(int limit) Delete up tobatchSize
trashed entities per trash retention rulesMethods inherited from class com.atlassian.confluence.impl.retention.manager.AbstractTrashRemovalManager
deleteForRule, determineNextContentIdOffset, getBatchSize, getTransactionTemplate, setCacheMode
-
Field Details
-
DEFAULT_TRASH_REMOVAL_SOFT_CLUSTER_LOCK_NAME
- See Also:
-
DEFAULT_TRASH_REMOVAL_HARD_CLUSTER_LOCK_NAME
- See Also:
-
-
Constructor Details
-
DefaultTrashRemovalManager
public DefaultTrashRemovalManager(GlobalRetentionPolicyManager globalRetentionPolicyManager, TrashCleanupJobStatusManager jobStatusManager, TrashManagerInternal trashManagerInternal, org.springframework.transaction.PlatformTransactionManager transactionManager, RetentionFeatureChecker retentionFeatureChecker, TrashRuleEvaluator trashRuleEvaluator, com.atlassian.event.api.EventPublisher eventPublisher, ClusterLockExecutionService clusterLockExecutionService)
-
-
Method Details
-
hardRemove
public void hardRemove()Description copied from interface:TrashRemovalManager
Delete all trashed entities per trash retention rules Note: This may take a long time depend on number of trashed entities that fail retention rules -
softRemove
public void softRemove(int limit) Description copied from interface:TrashRemovalManager
Delete up tobatchSize
trashed entities per trash retention rules- Parameters:
limit
- maximum number of trashed entities to delete in this run
-