Hygiene - remove unused private fields
This commit is contained in:
parent
cda24a64ba
commit
ec5b1f1d60
|
@ -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;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue