Package org.apache.hc.client5.http.cache
Interface HttpCacheCASOperation
-
@Contract(threading=STATELESS) public interface HttpCacheCASOperationAtomic Compare-And-Swap (CAS) cache operation.- Since:
- 5.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HttpCacheEntryexecute(HttpCacheEntry existing)Returns the new cache entry that should replace an existing one.
-
-
-
Method Detail
-
execute
HttpCacheEntry execute(HttpCacheEntry existing) throws ResourceIOException
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:
ResourceIOException
-
-