Class FastVersionRemovalService
java.lang.Object
com.atlassian.confluence.impl.retention.AbstractVersionRemovalService
com.atlassian.confluence.impl.retention.fast.FastVersionRemovalService
- All Implemented Interfaces:
VersionRemovalService
Fast version removal service for removing versions based on retention policies.
- Since:
- 9.1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
Fields inherited from class com.atlassian.confluence.impl.retention.AbstractVersionRemovalService
clusterLockExecutionService, DEFAULT_START_ORIGINAL_ID, DELETION_BATCH_SIZE, historicalVersionService, RETENTION_RULES_DELETION_BATCH_SIZE_KEY, retentionFeatureChecker, softCleanupStatusService, spaceRetentionPolicyManager, transactionManager, versionRemovalEventPublisher
-
Constructor Summary
ConstructorsConstructorDescriptionFastVersionRemovalService
(HistoricalVersionService historicalVersionService, FastSoftCleanupStatusService softCleanupStatusService, VersionRemovalEventPublisher versionRemovalEventPublisher, org.springframework.transaction.PlatformTransactionManager transactionManager, RetentionFeatureChecker retentionFeatureChecker, SpaceRetentionPolicyManager spaceRetentionPolicyManager, FastContentRetentionDao contentRetentionDao, FastSpaceRetentionDao spaceRetentionDao, com.atlassian.sal.api.features.DarkFeatureManager darkFeatureManager, ClusterLockExecutionService clusterLockExecutionService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
static int
void
hardRemoveVersions
(RetentionPolicy policy) Remove all content records which meet the RetentionPolicy Removes all content records which meet theRetentionPolicy
.void
boolean
void
softRemoveVersions
(RetentionPolicy policy, int batchSize) Remove approximately content records which meet the RetentionPolicy Removes versions which meet a givenRetentionPolicy
in batch.static int
static int
Methods inherited from class com.atlassian.confluence.impl.retention.AbstractVersionRemovalService
deleteForRule, getTransactionTemplate, saveJobStatus, setCacheMode
-
Field Details
-
FAST_VERSION_REMOVAL_DARK_FEATURE
- See Also:
-
FAST_VERSION_REMOVAL_SQL_SELECT_LIMIT
- See Also:
-
FAST_VERSION_REMOVAL_GLOBAL_ORIGINAL_PAGE_SIZE_PER_JOB
- See Also:
-
FAST_VERSION_REMOVAL_SPACE_ORIGINAL_PAGE_SIZE_PER_JOB
- See Also:
-
-
Constructor Details
-
FastVersionRemovalService
public FastVersionRemovalService(HistoricalVersionService historicalVersionService, FastSoftCleanupStatusService softCleanupStatusService, VersionRemovalEventPublisher versionRemovalEventPublisher, org.springframework.transaction.PlatformTransactionManager transactionManager, RetentionFeatureChecker retentionFeatureChecker, SpaceRetentionPolicyManager spaceRetentionPolicyManager, FastContentRetentionDao contentRetentionDao, FastSpaceRetentionDao spaceRetentionDao, com.atlassian.sal.api.features.DarkFeatureManager darkFeatureManager, ClusterLockExecutionService clusterLockExecutionService)
-
-
Method Details
-
isEnabled
public boolean isEnabled() -
sqlSelectLimit
public static int sqlSelectLimit() -
globalOriginalPageSizePerJob
public static int globalOriginalPageSizePerJob() -
spaceOriginalPageSizePerJob
public static int spaceOriginalPageSizePerJob() -
hardRemoveVersions
Description copied from interface:VersionRemovalService
Remove all content records which meet the RetentionPolicy Removes all content records which meet theRetentionPolicy
.- Parameters:
policy
- retention policy
-
softRemoveVersions
Description copied from interface:VersionRemovalService
Remove approximately content records which meet the RetentionPolicy Removes versions which meet a givenRetentionPolicy
in batch.- Parameters:
policy
- retention policybatchSize
- number of versions in a batch
-
info
-
debug
-