ScheduledExecutorService garbageCollectionService = this.context.getScheduledThreadPool(threadPoolName); backgroundProcesses.add(garbageCollectionService.scheduleAtFixedRate(new LockGarbageCollectionTask( JcrRepository.this), assert optInitialTimeInMillis >= 0; long optIntervalInMillis = TimeUnit.MILLISECONDS.convert(optIntervalInHours, TimeUnit.HOURS); ScheduledExecutorService optService = this.context.getScheduledThreadPool(threadPoolName); OptimizationTask optTask = new OptimizationTask(JcrRepository.this, targetCount, tolerance); backgroundProcesses.add(optService.scheduleAtFixedRate(optTask, optInitialTimeInMillis, optIntervalInMillis, long intervalInHours = journalingCfg.getIntervalInHours(); long intervalInMillis = TimeUnit.MILLISECONDS.convert(intervalInHours, TimeUnit.HOURS); ScheduledExecutorService journalingGCService = this.context.getScheduledThreadPool(threadPoolName); backgroundProcesses.add(journalingGCService.scheduleAtFixedRate(new JournalingGCTask(JcrRepository.this), initialTimeInMillis, intervalInMillis,
ScheduledExecutorService garbageCollectionService = this.context.getScheduledThreadPool(threadPoolName); backgroundProcesses.add(garbageCollectionService.scheduleAtFixedRate(new LockGarbageCollectionTask( JcrRepository.this), assert optInitialTimeInMillis >= 0; long optIntervalInMillis = TimeUnit.MILLISECONDS.convert(optIntervalInHours, TimeUnit.HOURS); ScheduledExecutorService optService = this.context.getScheduledThreadPool(threadPoolName); OptimizationTask optTask = new OptimizationTask(JcrRepository.this, targetCount, tolerance); backgroundProcesses.add(optService.scheduleAtFixedRate(optTask, optInitialTimeInMillis, optIntervalInMillis, long intervalInHours = journalingCfg.getIntervalInHours(); long intervalInMillis = TimeUnit.MILLISECONDS.convert(intervalInHours, TimeUnit.HOURS); ScheduledExecutorService journalingGCService = this.context.getScheduledThreadPool(threadPoolName); backgroundProcesses.add(journalingGCService.scheduleAtFixedRate(new JournalingGCTask(JcrRepository.this), initialTimeInMillis, intervalInMillis,
if (this.config.getMonitoring().enabled()) { this.statsRollupService = tempContext.getScheduledThreadPool("modeshape-stats"); this.statistics.start(this.statsRollupService); this.mbean = new RepositoryStatisticsBean(statistics, getName());
if (this.config.getMonitoring().enabled()) { this.statsRollupService = tempContext.getScheduledThreadPool("modeshape-stats"); this.statistics.start(this.statsRollupService); this.mbean = new RepositoryStatisticsBean(statistics, getName());