Uses of Class
org.apache.http.impl.client.cache.CacheConfig.Builder
Packages that use CacheConfig.Builder
Package
Description
This package contains a cache module that can be used for HTTP/1.1
client-side caching.
-
Uses of CacheConfig.Builder in org.apache.http.impl.client.cache
Methods in org.apache.http.impl.client.cache that return CacheConfig.BuilderModifier and TypeMethodDescriptionstatic CacheConfig.BuilderCacheConfig.copy(CacheConfig config) static CacheConfig.BuilderCacheConfig.custom()CacheConfig.Builder.setAllow303Caching(boolean allow303Caching) Enables or disables 303 caching.CacheConfig.Builder.setAsynchronousWorkerIdleLifetimeSecs(int asynchronousWorkerIdleLifetimeSecs) Sets the current maximum idle lifetime in seconds for a background revalidation worker thread.CacheConfig.Builder.setAsynchronousWorkersCore(int asynchronousWorkersCore) Sets the minimum number of threads to keep alive for background revalidations due to thestale-while-revalidatedirective.CacheConfig.Builder.setAsynchronousWorkersMax(int asynchronousWorkersMax) Sets the maximum number of threads to allow for background revalidations due to thestale-while-revalidatedirective.CacheConfig.Builder.setHeuristicCachingEnabled(boolean heuristicCachingEnabled) Enables or disables heuristic caching.CacheConfig.Builder.setHeuristicCoefficient(float heuristicCoefficient) Sets coefficient to be used in heuristic freshness caching.CacheConfig.Builder.setHeuristicDefaultLifetime(long heuristicDefaultLifetime) Sets default lifetime in seconds to be used if heuristic freshness calculation is not possible.CacheConfig.Builder.setMaxCacheEntries(int maxCacheEntries) Sets the maximum number of cache entries the cache will retain.CacheConfig.Builder.setMaxObjectSize(long maxObjectSize) Specifies the maximum response body size that will be eligible for caching.CacheConfig.Builder.setMaxUpdateRetries(int maxUpdateRetries) Sets the number of times to retry a cache update on failureCacheConfig.Builder.setNeverCacheHTTP10ResponsesWithQueryString(boolean neverCacheHTTP10ResponsesWithQuery) Sets whether the cache should never cache HTTP 1.0 responses with a query string or not.CacheConfig.Builder.setRevalidationQueueSize(int revalidationQueueSize) Sets the current maximum queue size for background revalidations.CacheConfig.Builder.setSharedCache(boolean isSharedCache) Sets whether the cache should behave as a shared cache or not.CacheConfig.Builder.setWeakETagOnPutDeleteAllowed(boolean weakETagOnPutDeleteAllowed) Allows or disallows weak etags to be used with PUT/DELETE If-Match requests.