@Contract(threading=STATELESS) @Internal public class DefaultCacheInvalidator extends Object implements HttpCacheInvalidator
Modifier and Type | Field and Description |
---|---|
static DefaultCacheInvalidator |
INSTANCE |
Constructor and Description |
---|
DefaultCacheInvalidator() |
Modifier and Type | Method and Description |
---|---|
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 storage)
Flush
HttpCacheEntry s invalidated by the given message exchange. |
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 storage)
Flush
HttpCacheEntry s invalidated by the given request. |
public static final DefaultCacheInvalidator INSTANCE
public 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 storage)
HttpCacheInvalidator
HttpCacheEntry
s invalidated by the given request.flushCacheEntriesInvalidatedByRequest
in interface HttpCacheInvalidator
host
- backend hostrequest
- request messagecacheKeyResolver
- cache key resolver used by cache storagestorage
- internal cache storagepublic 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 storage)
HttpCacheInvalidator
HttpCacheEntry
s invalidated by the given message exchange.flushCacheEntriesInvalidatedByExchange
in interface HttpCacheInvalidator
host
- backend hostrequest
- request messageresponse
- response messagecacheKeyResolver
- cache key resolver used by cache storagestorage
- internal cache storageCopyright © 2010–2021 The Apache Software Foundation. All rights reserved.