public class IndexFlushScheduler extends Object
Constructor and Description |
---|
IndexFlushScheduler(com.atlassian.scheduler.SchedulerService schedulerService,
String jobRunnerKeyAndId,
com.atlassian.scheduler.config.RunMode runMode,
long journalIgnoreWithinMillis,
IncrementalIndexManager indexManager,
FullReindexManager fullReindexManager) |
IndexFlushScheduler(com.atlassian.scheduler.SchedulerService schedulerService,
String jobRunnerKeyAndId,
com.atlassian.scheduler.config.RunMode runMode,
long journalIgnoreWithinMillis,
IncrementalIndexManager indexManager,
FullReindexManager fullReindexManager,
BooleanSupplier indexFlushEnabledSupplier)
JobRunnerKey and JobId use same value.
|
Modifier and Type | Method and Description |
---|---|
Instant |
getFirstRunTime() |
void |
requestFlush() |
public IndexFlushScheduler(com.atlassian.scheduler.SchedulerService schedulerService, String jobRunnerKeyAndId, com.atlassian.scheduler.config.RunMode runMode, long journalIgnoreWithinMillis, IncrementalIndexManager indexManager, FullReindexManager fullReindexManager)
public IndexFlushScheduler(com.atlassian.scheduler.SchedulerService schedulerService, String jobRunnerKeyAndId, com.atlassian.scheduler.config.RunMode runMode, long journalIgnoreWithinMillis, IncrementalIndexManager indexManager, FullReindexManager fullReindexManager, 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
arrivespublic void requestFlush()
public Instant getFirstRunTime()
Copyright © 2003–2021 Atlassian. All rights reserved.