org.apache.abdera.protocol.client.cache
Class InMemoryCache
java.lang.Object
org.apache.abdera.protocol.client.cache.CacheBase
org.apache.abdera.protocol.client.cache.InMemoryCache
- All Implemented Interfaces:
- Cache
- Direct Known Subclasses:
- LRUCache
public abstract class InMemoryCache
- extends CacheBase
Fields inherited from class org.apache.abdera.protocol.client.cache.CacheBase |
abdera |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cache
protected transient java.util.Map<CacheKey,CachedResponse> cache
InMemoryCache
protected InMemoryCache(Abdera abdera)
setMap
protected void setMap(java.util.Map<CacheKey,CachedResponse> map)
createCachedResponse
protected CachedResponse createCachedResponse(ClientResponse response,
CacheKey key)
throws java.io.IOException
- Specified by:
createCachedResponse
in class CacheBase
- Throws:
java.io.IOException
clear
public void clear()
get
public CachedResponse get(CacheKey key)
getCacheKey
public CacheKey getCacheKey(java.lang.String uri,
RequestOptions options)
getCacheKey
public CacheKey getCacheKey(java.lang.String uri,
RequestOptions options,
ClientResponse response)
- Specified by:
getCacheKey
in class CacheBase
remove
public void remove(CacheKey key)
add
protected void add(CacheKey key,
CachedResponse response)
- Specified by:
add
in class CacheBase