Interface MaintenanceCleanupStrategy<T extends ItemModel,C extends CronJobModel>
-
- All Known Implementing Classes:
CleanupCronJobStrategy,CleanupDroolsRulesStrategy,CleanupDynamicProcessDefinitionsStrategy,CleanUpLogsStrategy,CleanupSavedValuesStrategy,CxPersonalizationProcessCleanupStrategy,CxResultsCleanupStrategy,DefaultKieModuleCleanupStrategy,MediaMigrationStrategy
public interface MaintenanceCleanupStrategy<T extends ItemModel,C extends CronJobModel>This is the strategy interface for theGenericMaintenanceJobPerformable. The implementation of this interface consists of two parts. The search of the items (seecreateFetchQuery(CronJobModel)) and the removing of the items (seeprocess(List)). TheGenericMaintenanceJobPerformableis responsible for the paging of the large result list, this means if the search contains a large list of items the list inprocess(List)contains only a small number of elements. (at the moment 100 elements, seeAbstractMaintenanceJobPerformable.setPageSize(int))
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FlexibleSearchQuerycreateFetchQuery(C cjm)Implement and return aFlexibleSearchQueryobject here which searches for the items to be removed.voidprocess(java.util.List<T> elements)Based on the givenFlexibleSearchQueryofcreateFetchQuery(CronJobModel)the job pages through the results and with each sublist (contains the concrete instances of the items) of the large result this method is called.
-
-
-
Method Detail
-
createFetchQuery
FlexibleSearchQuery createFetchQuery(C cjm)
Implement and return aFlexibleSearchQueryobject here which searches for the items to be removed.
-
process
void process(java.util.List<T> elements)
Based on the givenFlexibleSearchQueryofcreateFetchQuery(CronJobModel)the job pages through the results and with each sublist (contains the concrete instances of the items) of the large result this method is called. Implement here the remove logic for each item element.
-
-