List of usage examples for org.apache.http.impl.client.cache CacheConfig getMaxUpdateRetries
public int getMaxUpdateRetries()
From source file:org.apache.http.impl.client.cache.memcached.MemcachedHttpCacheStorage.java
/** * Create a storage backend using the given <i>memcached</i> client and * applying the given cache configuration, serialization, and hashing * mechanisms.//from w w w. j ava 2s . c o m * @param client how to talk to <i>memcached</i> * @param config apply HTTP cache-related options * @param memcachedCacheEntryFactory Factory pattern used for obtaining * instances of alternative cache entry serialization mechanisms * @param keyHashingScheme how to map higher-level logical "storage keys" * onto "cache keys" suitable for use with memcached */ public MemcachedHttpCacheStorage(final MemcachedClientIF client, final CacheConfig config, final MemcachedCacheEntryFactory memcachedCacheEntryFactory, final KeyHashingScheme keyHashingScheme) { this.client = client; this.maxUpdateRetries = config.getMaxUpdateRetries(); this.memcachedCacheEntryFactory = memcachedCacheEntryFactory; this.keyHashingScheme = keyHashingScheme; }