Class FastTrashRemovalManager
java.lang.Object
com.atlassian.confluence.impl.retention.manager.AbstractTrashRemovalManager
com.atlassian.confluence.impl.retention.fast.FastTrashRemovalManager
- All Implemented Interfaces:
TrashRemovalManager
FastTrashRemovalManager is a service that removes trashes based on retention policies.
- Since:
- 9.1.0
-
Field Summary
FieldsFields 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
ConstructorsConstructorDescriptionFastTrashRemovalManager
(GlobalRetentionPolicyManager globalRetentionPolicyManager, FastTrashCleanupJobStatusManager jobStatusManager, TrashManagerInternal trashManagerInternal, org.springframework.transaction.PlatformTransactionManager transactionManager, RetentionFeatureChecker retentionFeatureChecker, TrashRuleEvaluator trashRuleEvaluator, com.atlassian.event.api.EventPublisher eventPublisher, FastContentRetentionDao contentRetentionDao, FastSpaceRetentionDao spaceRetentionDao, com.atlassian.sal.api.features.DarkFeatureManager darkFeatureManager, ClusterLockExecutionService clusterLockExecutionService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
static int
void
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
boolean
void
softRemove
(int limit) Delete up tobatchSize
trashed entities per trash retention rulesstatic int
Methods inherited from class com.atlassian.confluence.impl.retention.manager.AbstractTrashRemovalManager
deleteForRule, determineNextContentIdOffset, getBatchSize, getTransactionTemplate, setCacheMode
-
Field Details
-
FAST_TRASH_REMOVAL_RETENTION_RULES_DARK_FEATURE
- See Also:
-
FAST_TRASH_REMOVAL_GLOBAL_TRASH_DELETE_SIZE_PER_JOB
- See Also:
-
FAST_TRASH_REMOVAL_SPACE_TRASH_DELETE_SIZE_PER_JOB
- See Also:
-
-
Constructor Details
-
FastTrashRemovalManager
public FastTrashRemovalManager(GlobalRetentionPolicyManager globalRetentionPolicyManager, FastTrashCleanupJobStatusManager jobStatusManager, TrashManagerInternal trashManagerInternal, org.springframework.transaction.PlatformTransactionManager transactionManager, RetentionFeatureChecker retentionFeatureChecker, TrashRuleEvaluator trashRuleEvaluator, com.atlassian.event.api.EventPublisher eventPublisher, FastContentRetentionDao contentRetentionDao, FastSpaceRetentionDao spaceRetentionDao, com.atlassian.sal.api.features.DarkFeatureManager darkFeatureManager, ClusterLockExecutionService clusterLockExecutionService)
-
-
Method Details
-
globalTrashDeleteSizePerJob
public static int globalTrashDeleteSizePerJob() -
spaceTrashDeleteSizePerJob
public static int spaceTrashDeleteSizePerJob() -
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
-
isEnabled
public boolean isEnabled() -
info
-
debug
-