java.lang.Object | |
↳ | com.atlassian.confluence.search.lucene.queue.DatabaseQueueFlushedEntryCache |
Provides a cache of IndexQueueEntry objects that were added to the queue close to an index flush. Because the entry timestamps are stored in the database with only accuracy to the nearest second, these entries may be returned when the next flush runs, and we want to prevent rerunning them. The cacheWindowMillis controls the retention of the cache, and should be set to twice the database accuracy (typically 2000). Entries are added/kept if created within cacheWindowMillis milliseconds of a flush. Entries are removed if created outside cacheWindowMillis milliseconds of a flush.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
log |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Should only be used for testing.
| |||||||||||
Adds entries to the cache created on or after (relativeTo - cacheWindowMillis)
| |||||||||||
Removes items from the cache created before (relativeTo - cacheWindowMillis)
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object |
cacheWindowMillis | Controls timing for entry retention. Entries are added/kept if created within cacheWindowMillis milliseconds of a flush. Entries are removed if created outside cacheWindowMillis milliseconds of a flush. |
---|
Should only be used for testing. Use addEntries() in production code.
Adds entries to the cache created on or after (relativeTo - cacheWindowMillis)
entriesOldestFirst | a list of entries sorted by creationDate ascending |
---|---|
relativeTo | typically when the current flush started |
Removes items from the cache created before (relativeTo - cacheWindowMillis)
relativeTo | typically when the current flush started |
---|