Uses of Class
org.apache.hc.client5.http.impl.cache.CacheConfig.Builder
Packages that use CacheConfig.Builder
Package
Description
Caching API implementation for both the classic and
the asynchronous HTTP transports.
-
Uses of CacheConfig.Builder in org.apache.hc.client5.http.impl.cache
Methods in org.apache.hc.client5.http.impl.cache that return CacheConfig.BuilderModifier and TypeMethodDescriptionstatic CacheConfig.Builder
CacheConfig.copy
(CacheConfig config) static CacheConfig.Builder
CacheConfig.custom()
CacheConfig.Builder.setAllow303Caching
(boolean allow303Caching) Enables or disables 303 caching.CacheConfig.Builder.setAsynchronousWorkers
(int asynchronousWorkers) Sets the maximum number of threads to allow for background revalidations due to thestale-while-revalidate
directive.CacheConfig.Builder.setFreshnessCheckEnabled
(boolean freshnessCheckEnabled) 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
(org.apache.hc.core5.util.TimeValue heuristicDefaultLifetime) Sets default lifetime 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 processChallenge 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.setSharedCache
(boolean sharedCache) 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.