Package org.apache.http.client.cache
Interface HttpCacheUpdateCallback
- 
public interface HttpCacheUpdateCallbackUsed for atomically updating entries in aHttpCacheStorageimplementation. The current entry (if any) is fed into an implementation of this interface, and the new, possibly updated entry (if any) should be returned. 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HttpCacheEntryupdate(HttpCacheEntry existing)Returns the new cache entry that should replace an existing one. 
 - 
 
- 
- 
Method Detail
- 
update
HttpCacheEntry update(HttpCacheEntry existing) throws java.io.IOException
Returns the new cache entry that should replace an existing one.- Parameters:
 existing- the cache entry currently in-place in the cache, possiblynullif nonexistent- Returns:
 - the cache entry that should replace it, again,
         possibly 
nullif the entry should be deleted - Throws:
 java.io.IOException- Since:
 - 4.1
 
 
 - 
 
 -