Example usage for org.apache.http.impl.client.cache CacheConfig getHeuristicCoefficient

List of usage examples for org.apache.http.impl.client.cache CacheConfig getHeuristicCoefficient

Introduction

In this page you can find the example usage for org.apache.http.impl.client.cache CacheConfig getHeuristicCoefficient.

Prototype

public float getHeuristicCoefficient() 

Source Link

Document

Returns lifetime coefficient used in heuristic freshness caching.

Usage

From source file:org.apache.http.impl.client.cache.CachedResponseSuitabilityChecker.java

CachedResponseSuitabilityChecker(final CacheValidityPolicy validityStrategy, CacheConfig config) {
    super();/*  w ww .  j  a v a2s. com*/
    this.validityStrategy = validityStrategy;
    this.sharedCache = config.isSharedCache();
    this.useHeuristicCaching = config.isHeuristicCachingEnabled();
    this.heuristicCoefficient = config.getHeuristicCoefficient();
    this.heuristicDefaultLifetime = config.getHeuristicDefaultLifetime();
}