#2017 - ENH: Add option for different initialDelay to BackgroundExecutor.executePeriodically()

This commit is contained in:
rob bygrave
2020-06-05 18:31:07 +12:00
parent cbdf5609b2
commit 4565719728
3 changed files with 13 additions and 9 deletions
@@ -245,7 +245,7 @@ public class BeanDescriptorManager implements BeanDescriptorMap {
* Run periodic trim of query plans.
*/
public void scheduleBackgroundTrim() {
backgroundExecutor.executePeriodically(this::trimQueryPlans, 60L, TimeUnit.SECONDS);
backgroundExecutor.executePeriodically(this::trimQueryPlans, 117L, 60L, TimeUnit.SECONDS);
}
private void trimQueryPlans() {