Package org.apache.http.impl.client.cache
This package contains a cache module that can be used for HTTP/1.1
client-side caching. The primary classes in this package are the
CachingHttpClient
,
which is a drop-in replacement for
a DefaultHttpClient
that adds
caching, and the CacheConfig
class that can be used for configuring it.
-
Interface Summary Interface Description FailureCache Increase and reset the number of errors associated with a specific identifier.SchedulingStrategy Specifies when revalidation requests are scheduled. -
Class Summary Class Description AsynchronousValidationRequest Class used to represent an asynchronous revalidation event, such as with "stale-while-revalidate"BasicHttpCacheStorage BasicHttpCacheStorage
implementation backed by an instance ofLinkedHashMap
.CacheConfig Java Beans-style configuration for aCachingHttpClient
.CacheConfig.Builder CachingExec Request executor in the request execution chain that is responsible for transparent client-side caching.CachingHttpClient Deprecated. (4.3) useCachingHttpClientBuilder
orCachingHttpClients
.CachingHttpClientBuilder Builder forCloseableHttpClient
instances capable of client-side caching.CachingHttpClients Factory methods forCloseableHttpClient
instances capable of client-side caching.DefaultFailureCache Implements a bounded failure cache.DefaultHttpCacheEntrySerializer HttpCacheEntrySerializer
implementation that uses the default (native) serialization.ExponentialBackOffSchedulingStrategy An implementation that backs off exponentially based on the number of consecutive failed attempts stored in theAsynchronousValidationRequest
.FailureCacheValue The error count with a creation timestamp and its associated key.FileResource Cache resource backed by a file.FileResourceFactory GeneratesResource
instances whose body is stored in a temporary file.HeapResource Cache resource backed by a byte array on the heap.HeapResourceFactory GeneratesResource
instances stored entirely in heap.ImmediateSchedulingStrategy Immediately schedules any incoming validation request.ManagedHttpCacheStorage HttpCacheStorage
implementation capable of deallocating resources associated with the cache entries.