Java org.apache.http.impl.client.cache CacheConfig fields, constructors, methods, implement or subclass

Example usage for Java org.apache.http.impl.client.cache CacheConfig fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.http.impl.client.cache CacheConfig.

The text is from its open source code.

Field

Constructor

Method

intgetAsynchronousWorkerIdleLifetimeSecs()
Returns the current maximum idle lifetime in seconds for a background revalidation worker thread.
intgetAsynchronousWorkersCore()
Returns the minimum number of threads to keep alive for background revalidations due to the stale-while-revalidate directive.
intgetAsynchronousWorkersMax()
Returns the maximum number of threads to allow for background revalidations due to the stale-while-revalidate directive.
floatgetHeuristicCoefficient()
Returns lifetime coefficient used in heuristic freshness caching.
longgetHeuristicDefaultLifetime()
Get the default lifetime to be used if heuristic freshness calculation is not possible.
intgetMaxObjectSizeBytes()
Returns the current maximum response body size that will be cached.
intgetMaxUpdateRetries()
Returns the number of times to retry a cache update on failure
intgetRevalidationQueueSize()
Returns the current maximum queue size for background revalidations.
booleanisHeuristicCachingEnabled()
Returns whether heuristic caching is enabled.
voidsetHeuristicCachingEnabled(boolean heuristicCachingEnabled)
Enables or disables heuristic caching.
voidsetHeuristicCoefficient(float heuristicCoefficient)
Sets coefficient to be used in heuristic freshness caching.
voidsetHeuristicDefaultLifetime(long heuristicDefaultLifetimeSecs)
Sets default lifetime in seconds to be used if heuristic freshness calculation is not possible.
voidsetMaxCacheEntries(int maxCacheEntries)
Sets the maximum number of cache entries the cache will retain.
voidsetMaxObjectSizeBytes(int maxObjectSizeBytes)
Specifies the maximum response body size that will be eligible for caching.
voidsetSharedCache(boolean isSharedCache)
Sets whether the cache should behave as a shared cache or not.