Hygiene - remove unused private fields

This commit is contained in:
Michael Lee 2023-02-23 14:21:04 +08:00 committed by Oleg Kalnichevski
parent cda24a64ba
commit ec5b1f1d60
2 changed files with 0 additions and 7 deletions

View File

@ -87,8 +87,6 @@ class DefaultAsyncCacheRevalidator extends CacheRevalidatorBase {
}
private final CacheKeyGenerator cacheKeyGenerator;
/**
* Create DefaultCacheRevalidator which will make ache revalidation requests
* using the supplied {@link SchedulingStrategy} and {@link ScheduledExecutor}.
@ -97,8 +95,6 @@ class DefaultAsyncCacheRevalidator extends CacheRevalidatorBase {
final ScheduledExecutor scheduledExecutor,
final SchedulingStrategy schedulingStrategy) {
super(new InternalScheduledExecutor(scheduledExecutor), schedulingStrategy);
this.cacheKeyGenerator = CacheKeyGenerator.INSTANCE;
}
/**

View File

@ -61,9 +61,6 @@ public class ExponentialBackOffSchedulingStrategy implements SchedulingStrategy
public static final TimeValue DEFAULT_INITIAL_EXPIRY = TimeValue.ofSeconds(6);
public static final TimeValue DEFAULT_MAX_EXPIRY = TimeValue.ofSeconds(86400);
private static final ExponentialBackOffSchedulingStrategy INSTANCE = new ExponentialBackOffSchedulingStrategy(
DEFAULT_BACK_OFF_RATE, DEFAULT_INITIAL_EXPIRY, DEFAULT_MAX_EXPIRY);
private final long backOffRate;
private final TimeValue initialExpiry;
private final TimeValue maxExpiry;