public class DefaultIndexFlushScheduler extends Object implements IndexFlushScheduler
Each time a flush is scheduled, this class will schedule a new flush to happen in 3 seconds unless a flush has already been scheduled.
Index is also flushed one minute after startup and every hour thereafter.
IndexFlushScheduler.Resumer
Constructor and Description |
---|
DefaultIndexFlushScheduler(com.atlassian.scheduler.SchedulerService schedulerService,
ConfluenceIndexManager indexManager,
com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar,
org.quartz.Scheduler scheduler) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
void |
init() |
void |
onApplicationStartedEvent(com.atlassian.config.lifecycle.events.ApplicationStartedEvent event) |
void |
onDarkFeatureDisabled(SiteDarkFeatureDisabledEvent event) |
void |
onDarkFeatureEnabled(SiteDarkFeatureEnabledEvent event) |
IndexFlushScheduler.Resumer |
pause() |
void |
resume() |
void |
schedule(com.atlassian.confluence.impl.search.DefaultIndexFlushScheduler.RequestIndexFlushEvent event) |
public DefaultIndexFlushScheduler(com.atlassian.scheduler.SchedulerService schedulerService, ConfluenceIndexManager indexManager, com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar, org.quartz.Scheduler scheduler)
@PostConstruct public void init()
@EventListener public void onApplicationStartedEvent(com.atlassian.config.lifecycle.events.ApplicationStartedEvent event)
@EventListener public void onDarkFeatureEnabled(SiteDarkFeatureEnabledEvent event)
@EventListener public void onDarkFeatureDisabled(SiteDarkFeatureDisabledEvent event)
@EventListener public void schedule(com.atlassian.confluence.impl.search.DefaultIndexFlushScheduler.RequestIndexFlushEvent event)
public void resume()
resume
in interface IndexFlushScheduler
public IndexFlushScheduler.Resumer pause()
pause
in interface IndexFlushScheduler
@PreDestroy public void destroy()
Copyright © 2003–2016 Atlassian. All rights reserved.