org.apache.abdera.protocol.client.cache
Class InMemoryCache
java.lang.Object
org.apache.abdera.protocol.client.cache.AbstractCache
org.apache.abdera.protocol.client.cache.InMemoryCache
- All Implemented Interfaces:
- Iterable<Object>, Cache
- Direct Known Subclasses:
- LRUCache
public abstract class InMemoryCache
- extends AbstractCache
Nested classes/interfaces inherited from interface org.apache.abdera.protocol.client.cache.Cache |
Cache.Disposition |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cache
protected final transient Map<Object,CachedResponse> cache
InMemoryCache
protected InMemoryCache(Abdera abdera,
Map<Object,CachedResponse> map)
createCachedResponse
protected CachedResponse createCachedResponse(ClientResponse response,
Object key)
throws IOException
- Specified by:
createCachedResponse
in class AbstractCache
- Throws:
IOException
clear
public Cache clear()
- Description copied from interface:
Cache
- Clear all items from the cache
get
public CachedResponse get(Object key)
- Description copied from interface:
Cache
- Get a specific item from the cache
remove
public Cache remove(Object key)
- Description copied from interface:
Cache
- Remove a specific item from the cache
add
protected void add(Object key,
CachedResponse response)
- Specified by:
add
in class AbstractCache
iterator
public Iterator<Object> iterator()
Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.