Package | Description |
---|---|
org.apache.hc.client5.http.impl.cache |
Caching API implementation for both the classic and
the asynchronous HTTP transports.
|
Modifier and Type | Method and Description |
---|---|
static CacheConfig.Builder |
CacheConfig.copy(CacheConfig config) |
static CacheConfig.Builder |
CacheConfig.custom() |
CacheConfig.Builder |
CacheConfig.Builder.setAllow303Caching(boolean allow303Caching)
Deprecated.
Has no effect. Do not use.
|
CacheConfig.Builder |
CacheConfig.Builder.setAsynchronousWorkers(int asynchronousWorkers)
Sets the maximum number of threads to allow for background
revalidations due to the
stale-while-revalidate directive. |
CacheConfig.Builder |
CacheConfig.Builder.setFreshnessCheckEnabled(boolean freshnessCheckEnabled) |
CacheConfig.Builder |
CacheConfig.Builder.setHeuristicCachingEnabled(boolean heuristicCachingEnabled)
Enables or disables heuristic caching.
|
CacheConfig.Builder |
CacheConfig.Builder.setHeuristicCoefficient(float heuristicCoefficient)
Sets coefficient to be used in heuristic freshness caching.
|
CacheConfig.Builder |
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 |
CacheConfig.Builder.setMaxCacheEntries(int maxCacheEntries)
Sets the maximum number of cache entries the cache will retain.
|
CacheConfig.Builder |
CacheConfig.Builder.setMaxObjectSize(long maxObjectSize)
Specifies the maximum response body size that will be eligible for caching.
|
CacheConfig.Builder |
CacheConfig.Builder.setMaxUpdateRetries(int maxUpdateRetries)
Sets the number of times to retry a cache processChallenge on failure
|
CacheConfig.Builder |
CacheConfig.Builder.setNeverCacheHTTP10ResponsesWithQueryString(boolean neverCacheHTTP10ResponsesWithQuery)
Sets whether the cache should never cache HTTP 1.0 responses with a query string or not.
|
CacheConfig.Builder |
CacheConfig.Builder.setNeverCacheHTTP11ResponsesWithQueryString(boolean neverCacheHTTP11ResponsesWithQuery)
Sets the flag indicating whether HTTP/1.1 responses with a query string should never be cached.
|
CacheConfig.Builder |
CacheConfig.Builder.setSharedCache(boolean sharedCache)
Sets whether the cache should behave as a shared cache or not.
|
CacheConfig.Builder |
CacheConfig.Builder.setStaleIfErrorEnabled(boolean enabled)
Enables or disables the stale-if-error cache directive.
|
CacheConfig.Builder |
CacheConfig.Builder.setWeakETagOnPutDeleteAllowed(boolean weakETagOnPutDeleteAllowed)
Deprecated.
No longer applicable. Do not use.
|
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.