Interface HttpCacheInvalidator
- All Known Implementing Classes:
DefaultCacheInvalidator
@Contract(threading=STATELESS)
@Internal
public interface HttpCacheInvalidator
Given a particular HTTP request / response pair, flush any cache entries
that this exchange would invalidate.
- Since:
- 4.3
-
Method Summary
Modifier and TypeMethodDescriptionvoidflushCacheEntriesInvalidatedByExchange(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.HttpResponse response, org.apache.hc.core5.function.Resolver<URI, String> cacheKeyResolver, HttpCacheStorage cacheStorage) FlushHttpCacheEntrys invalidated by the given message exchange.voidflushCacheEntriesInvalidatedByRequest(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.function.Resolver<URI, String> cacheKeyResolver, HttpCacheStorage cacheStorage) FlushHttpCacheEntrys invalidated by the given request.
-
Method Details
-
flushCacheEntriesInvalidatedByRequest
void flushCacheEntriesInvalidatedByRequest(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.function.Resolver<URI, String> cacheKeyResolver, HttpCacheStorage cacheStorage) FlushHttpCacheEntrys invalidated by the given request.- Parameters:
host- backend hostrequest- request messagecacheKeyResolver- cache key resolver used by cache storagecacheStorage- internal cache storage- Since:
- 5.0
-
flushCacheEntriesInvalidatedByExchange
void flushCacheEntriesInvalidatedByExchange(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.HttpResponse response, org.apache.hc.core5.function.Resolver<URI, String> cacheKeyResolver, HttpCacheStorage cacheStorage) FlushHttpCacheEntrys invalidated by the given message exchange.- Parameters:
host- backend hostrequest- request messageresponse- response messagecacheKeyResolver- cache key resolver used by cache storagecacheStorage- internal cache storage- Since:
- 5.0
-