Class CleanupScheduler
java.lang.Object
io.camunda.optimize.service.AbstractScheduledService
io.camunda.optimize.service.cleanup.CleanupScheduler
- All Implemented Interfaces:
ConfigurationReloadable
@Component
public class CleanupScheduler
extends AbstractScheduledService
implements ConfigurationReloadable
-
Field Summary
Fields inherited from class io.camunda.optimize.service.AbstractScheduledService
taskScheduler -
Constructor Summary
ConstructorsConstructorDescriptionCleanupScheduler(ConfigurationService configurationService, List<CleanupService> cleanupServices) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.scheduling.support.CronTriggerprotected CleanupConfigurationvoidinit()voidreloadConfiguration(org.springframework.context.ApplicationContext context) voidrun()voidvoidvoidMethods inherited from class io.camunda.optimize.service.AbstractScheduledService
getName, isScheduledToRun, startScheduling, stopScheduling
-
Constructor Details
-
CleanupScheduler
public CleanupScheduler(ConfigurationService configurationService, List<CleanupService> cleanupServices)
-
-
Method Details
-
init
@PostConstruct public void init() -
startCleanupScheduling
public void startCleanupScheduling() -
stopCleanupScheduling
@PreDestroy public void stopCleanupScheduling() -
run
public void run()- Specified by:
runin classAbstractScheduledService
-
createScheduleTrigger
protected org.springframework.scheduling.support.CronTrigger createScheduleTrigger()- Specified by:
createScheduleTriggerin classAbstractScheduledService
-
runCleanup
public void runCleanup() -
getCleanupServices
-
reloadConfiguration
public void reloadConfiguration(org.springframework.context.ApplicationContext context) - Specified by:
reloadConfigurationin interfaceConfigurationReloadable
-
getCleanupConfiguration
-