mirror of
https://github.com/apache/httpcomponents-client.git
synced 2025-02-08 19:15:16 +00:00
Hygiene - remove unused private fields
This commit is contained in:
parent
cda24a64ba
commit
ec5b1f1d60
@ -87,8 +87,6 @@ public void awaitTermination(final Timeout timeout) throws InterruptedException
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private final CacheKeyGenerator cacheKeyGenerator;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create DefaultCacheRevalidator which will make ache revalidation requests
|
* Create DefaultCacheRevalidator which will make ache revalidation requests
|
||||||
* using the supplied {@link SchedulingStrategy} and {@link ScheduledExecutor}.
|
* using the supplied {@link SchedulingStrategy} and {@link ScheduledExecutor}.
|
||||||
@ -97,8 +95,6 @@ public DefaultAsyncCacheRevalidator(
|
|||||||
final ScheduledExecutor scheduledExecutor,
|
final ScheduledExecutor scheduledExecutor,
|
||||||
final SchedulingStrategy schedulingStrategy) {
|
final SchedulingStrategy schedulingStrategy) {
|
||||||
super(new InternalScheduledExecutor(scheduledExecutor), 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_INITIAL_EXPIRY = TimeValue.ofSeconds(6);
|
||||||
public static final TimeValue DEFAULT_MAX_EXPIRY = TimeValue.ofSeconds(86400);
|
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 long backOffRate;
|
||||||
private final TimeValue initialExpiry;
|
private final TimeValue initialExpiry;
|
||||||
private final TimeValue maxExpiry;
|
private final TimeValue maxExpiry;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user