org.apache.abdera.protocol.client.cache
Interface Cache

All Superinterfaces:
Iterable<Object>
All Known Implementing Classes:
AbstractCache, InMemoryCache, LRUCache

public interface Cache
extends Iterable<Object>


Nested Class Summary
static class Cache.Disposition
           
 
Method Summary
 Cache clear()
          Clear all items from the cache
 Cache.Disposition disposition(Object key, RequestOptions options)
          Get the disposition of a specific item
 CachedResponse get(Object key)
          Get a specific item from the cache
 Cache remove(Object key)
          Remove a specific item from the cache
 ClientResponse update(Object key, RequestOptions options, ClientResponse response, ClientResponse cached_response)
          Update the cached item
 
Methods inherited from interface java.lang.Iterable
iterator
 

Method Detail

disposition

Cache.Disposition disposition(Object key,
                              RequestOptions options)
Get the disposition of a specific item


get

CachedResponse get(Object key)
Get a specific item from the cache


clear

Cache clear()
Clear all items from the cache


remove

Cache remove(Object key)
Remove a specific item from the cache


update

ClientResponse update(Object key,
                      RequestOptions options,
                      ClientResponse response,
                      ClientResponse cached_response)
Update the cached item



Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.