Package | Description |
---|---|
org.apache.http.impl.client.cache |
This package contains a cache module that can be used for HTTP/1.1
client-side caching.
|
Modifier and Type | Field and Description |
---|---|
private CacheConfig |
CachingHttpClientBuilder.cacheConfig |
private CacheConfig |
CachingExec.cacheConfig |
static CacheConfig |
CacheConfig.DEFAULT |
Modifier and Type | Method and Description |
---|---|
CacheConfig |
CacheConfig.Builder.build() |
protected CacheConfig |
CacheConfig.clone() |
Modifier and Type | Method and Description |
---|---|
static CacheConfig.Builder |
CacheConfig.copy(CacheConfig config) |
private AsynchronousValidator |
CachingHttpClientBuilder.createAsynchronousRevalidator(CacheConfig config) |
private SchedulingStrategy |
CachingHttpClientBuilder.createSchedulingStrategy(CacheConfig config) |
private static java.util.concurrent.ScheduledThreadPoolExecutor |
ExponentialBackOffSchedulingStrategy.createThreadPoolFromCacheConfig(CacheConfig cacheConfig) |
private CachingHttpClient.AsynchronousValidator |
CachingHttpClient.makeAsynchronousValidator(CacheConfig config)
Deprecated.
|
CachingHttpClientBuilder |
CachingHttpClientBuilder.setCacheConfig(CacheConfig cacheConfig) |
Constructor and Description |
---|
AsynchronousValidator(CacheConfig config)
Create AsynchronousValidator which will make revalidation requests
using an
ImmediateSchedulingStrategy . |
AsynchronousValidator(CachingHttpClient cachingClient,
CacheConfig config)
Create AsynchronousValidator which will make revalidation requests
using the supplied
CachingHttpClient , and
a ThreadPoolExecutor generated according to the thread
pool settings provided in the given CacheConfig . |
BasicHttpCache(CacheConfig config) |
BasicHttpCache(ResourceFactory resourceFactory,
HttpCacheStorage storage,
CacheConfig config) |
BasicHttpCache(ResourceFactory resourceFactory,
HttpCacheStorage storage,
CacheConfig config,
CacheKeyGenerator uriExtractor) |
BasicHttpCache(ResourceFactory resourceFactory,
HttpCacheStorage storage,
CacheConfig config,
CacheKeyGenerator uriExtractor,
HttpCacheInvalidator cacheInvalidator) |
BasicHttpCacheStorage(CacheConfig config) |
CachedResponseSuitabilityChecker(CacheConfig config) |
CachedResponseSuitabilityChecker(CacheValidityPolicy validityStrategy,
CacheConfig config) |
CachingExec(ClientExecChain backend,
HttpCache cache,
CacheConfig config) |
CachingExec(ClientExecChain backend,
HttpCache cache,
CacheConfig config,
AsynchronousValidator asynchRevalidator) |
CachingExec(ClientExecChain backend,
HttpCache responseCache,
CacheValidityPolicy validityPolicy,
ResponseCachingPolicy responseCachingPolicy,
CachedHttpResponseGenerator responseGenerator,
CacheableRequestPolicy cacheableRequestPolicy,
CachedResponseSuitabilityChecker suitabilityChecker,
ConditionalRequestBuilder conditionalRequestBuilder,
ResponseProtocolCompliance responseCompliance,
RequestProtocolCompliance requestCompliance,
CacheConfig config,
AsynchronousValidator asynchRevalidator) |
CachingExec(ClientExecChain backend,
ResourceFactory resourceFactory,
HttpCacheStorage storage,
CacheConfig config) |
CachingHttpClient(CacheConfig config)
Deprecated.
Constructs a
CachingHttpClient with the given caching options that
stores cache entries in memory and uses a vanilla DefaultHttpClient
for backend requests. |
CachingHttpClient(HttpClient client,
CacheConfig config)
Deprecated.
Constructs a
CachingHttpClient with the given caching options that
stores cache entries in memory and uses the given HttpClient
for backend requests. |
CachingHttpClient(HttpClient client,
HttpCache cache,
CacheConfig config)
Deprecated.
|
CachingHttpClient(HttpClient client,
HttpCacheStorage storage,
CacheConfig config)
Deprecated.
Constructs a
CachingHttpClient with the given caching options
that stores cache entries in the provided storage backend and uses
the given HttpClient for backend requests. |
CachingHttpClient(HttpClient client,
ResourceFactory resourceFactory,
HttpCacheStorage storage,
CacheConfig config)
Deprecated.
Constructs a
CachingHttpClient with the given caching options
that stores cache entries in the provided storage backend and uses
the given HttpClient for backend requests. |
ExponentialBackOffSchedulingStrategy(CacheConfig cacheConfig)
Create a new scheduling strategy using a fixed pool of worker threads.
|
ExponentialBackOffSchedulingStrategy(CacheConfig cacheConfig,
long backOffRate,
long initialExpiryInMillis,
long maxExpiryInMillis)
Create a new scheduling strategy by using a fixed pool of worker threads and the
given parameters to calculated the delay.
|
ImmediateSchedulingStrategy(CacheConfig cacheConfig)
Uses a
ThreadPoolExecutor which is configured according to the
given CacheConfig . |
ManagedHttpCacheStorage(CacheConfig config) |