public class IndexFlushScheduler extends Object
Constructor and Description |
---|
IndexFlushScheduler(com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar,
com.atlassian.scheduler.SchedulerService schedulerService,
String jobRunnerKeyAndId,
com.atlassian.scheduler.config.RunMode runMode,
long journalIgnoreWithinMillis,
IndexManager indexManager) |
IndexFlushScheduler(com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar,
com.atlassian.scheduler.SchedulerService schedulerService,
String jobRunnerKeyAndId,
com.atlassian.scheduler.config.RunMode runMode,
long journalIgnoreWithinMillis,
IndexManager indexManager,
BooleanSupplier indexFlushEnabledSupplier)
JobRunnerKey and JobId use same value.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
Instant |
getFirstRunTime() |
void |
init() |
void |
requestFlush(DefaultIndexFlushRequester.RequestIndexFlushEvent event) |
public IndexFlushScheduler(com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar, com.atlassian.scheduler.SchedulerService schedulerService, String jobRunnerKeyAndId, com.atlassian.scheduler.config.RunMode runMode, long journalIgnoreWithinMillis, IndexManager indexManager)
public IndexFlushScheduler(com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar, com.atlassian.scheduler.SchedulerService schedulerService, String jobRunnerKeyAndId, com.atlassian.scheduler.config.RunMode runMode, long journalIgnoreWithinMillis, IndexManager indexManager, BooleanSupplier indexFlushEnabledSupplier)
journalIgnoreWithinMillis
- Entries added to journal within the last given milliseconds are ignored.indexFlushEnabledSupplier
- Nullable; for optimisation, if non-null and returns false, nothing will happen
when DefaultIndexFlushRequester.RequestIndexFlushEvent
arrives@PostConstruct public void init()
@PreDestroy public void destroy()
@EventListener public void requestFlush(DefaultIndexFlushRequester.RequestIndexFlushEvent event)
public Instant getFirstRunTime()
Copyright © 2003–2016 Atlassian. All rights reserved.