@Contract(threading=STATELESS) @Internal public class DefaultAsyncCacheInvalidator extends Object implements HttpAsyncCacheInvalidator
Modifier and Type | Field and Description |
---|---|
static DefaultAsyncCacheInvalidator |
INSTANCE |
Constructor and Description |
---|
DefaultAsyncCacheInvalidator() |
Modifier and Type | Method and Description |
---|---|
org.apache.hc.core5.concurrent.Cancellable |
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,
HttpAsyncCacheStorage storage,
org.apache.hc.core5.concurrent.FutureCallback<Boolean> callback)
Flush
HttpCacheEntry s invalidated by the given message exchange. |
org.apache.hc.core5.concurrent.Cancellable |
flushCacheEntriesInvalidatedByRequest(org.apache.hc.core5.http.HttpHost host,
org.apache.hc.core5.http.HttpRequest request,
org.apache.hc.core5.function.Resolver<URI,String> cacheKeyResolver,
HttpAsyncCacheStorage storage,
org.apache.hc.core5.concurrent.FutureCallback<Boolean> callback)
Flush
HttpCacheEntry s invalidated by the given request. |
public static final DefaultAsyncCacheInvalidator INSTANCE
public org.apache.hc.core5.concurrent.Cancellable flushCacheEntriesInvalidatedByRequest(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.function.Resolver<URI,String> cacheKeyResolver, HttpAsyncCacheStorage storage, org.apache.hc.core5.concurrent.FutureCallback<Boolean> callback)
HttpAsyncCacheInvalidator
HttpCacheEntry
s invalidated by the given request.flushCacheEntriesInvalidatedByRequest
in interface HttpAsyncCacheInvalidator
host
- backend hostrequest
- request messagecacheKeyResolver
- cache key resolver used by cache storagestorage
- internal cache storagecallback
- result callbackpublic org.apache.hc.core5.concurrent.Cancellable 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, HttpAsyncCacheStorage storage, org.apache.hc.core5.concurrent.FutureCallback<Boolean> callback)
HttpAsyncCacheInvalidator
HttpCacheEntry
s invalidated by the given message exchange.flushCacheEntriesInvalidatedByExchange
in interface HttpAsyncCacheInvalidator
host
- backend hostrequest
- request messageresponse
- response messagecacheKeyResolver
- cache key resolver used by cache storagestorage
- internal cache storagecallback
- result callbackCopyright © 1999–2022 The Apache Software Foundation. All rights reserved.