Example usage for Java org.apache.http.impl.client.cache CacheConfig fields, constructors, methods, implement or subclass
The text is from its open source code.
boolean | isSharedCache |
int | getAsynchronousWorkerIdleLifetimeSecs() Returns the current maximum idle lifetime in seconds for a background revalidation worker thread. |
int | getAsynchronousWorkersCore() Returns the minimum number of threads to keep alive for background revalidations due to the stale-while-revalidate directive. |
int | getAsynchronousWorkersMax() Returns the maximum number of threads to allow for background revalidations due to the stale-while-revalidate directive. |
float | getHeuristicCoefficient() Returns lifetime coefficient used in heuristic freshness caching. |
long | getHeuristicDefaultLifetime() Get the default lifetime to be used if heuristic freshness calculation is not possible. |
int | getMaxObjectSizeBytes() Returns the current maximum response body size that will be cached. |
int | getMaxUpdateRetries() Returns the number of times to retry a cache update on failure |
int | getRevalidationQueueSize() Returns the current maximum queue size for background revalidations. |
boolean | isHeuristicCachingEnabled() Returns whether heuristic caching is enabled. |
void | setHeuristicCachingEnabled(boolean heuristicCachingEnabled) Enables or disables heuristic caching. |
void | setHeuristicCoefficient(float heuristicCoefficient) Sets coefficient to be used in heuristic freshness caching. |
void | setHeuristicDefaultLifetime(long heuristicDefaultLifetimeSecs) Sets default lifetime in seconds to be used if heuristic freshness calculation is not possible. |
void | setMaxCacheEntries(int maxCacheEntries) Sets the maximum number of cache entries the cache will retain. |
void | setMaxObjectSizeBytes(int maxObjectSizeBytes) Specifies the maximum response body size that will be eligible for caching. |
void | setSharedCache(boolean isSharedCache) Sets whether the cache should behave as a shared cache or not. |