@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 |
|---|---|
Cancellable |
flushCacheEntriesInvalidatedByExchange(HttpHost host,
HttpRequest request,
HttpResponse response,
Resolver<URI,String> cacheKeyResolver,
HttpAsyncCacheStorage storage,
FutureCallback<Boolean> callback)
Flush
HttpCacheEntrys invalidated by the given message exchange. |
Cancellable |
flushCacheEntriesInvalidatedByRequest(HttpHost host,
HttpRequest request,
Resolver<URI,String> cacheKeyResolver,
HttpAsyncCacheStorage storage,
FutureCallback<Boolean> callback)
Flush
HttpCacheEntrys invalidated by the given request. |
public static final DefaultAsyncCacheInvalidator INSTANCE
public Cancellable flushCacheEntriesInvalidatedByRequest(HttpHost host, HttpRequest request, Resolver<URI,String> cacheKeyResolver, HttpAsyncCacheStorage storage, FutureCallback<Boolean> callback)
HttpAsyncCacheInvalidatorHttpCacheEntrys invalidated by the given request.flushCacheEntriesInvalidatedByRequest in interface HttpAsyncCacheInvalidatorhost - backend hostrequest - request messagecacheKeyResolver - cache key resolver used by cache storagestorage - internal cache storagecallback - result callbackpublic Cancellable flushCacheEntriesInvalidatedByExchange(HttpHost host, HttpRequest request, HttpResponse response, Resolver<URI,String> cacheKeyResolver, HttpAsyncCacheStorage storage, FutureCallback<Boolean> callback)
HttpAsyncCacheInvalidatorHttpCacheEntrys invalidated by the given message exchange.flushCacheEntriesInvalidatedByExchange in interface HttpAsyncCacheInvalidatorhost - backend hostrequest - request messageresponse - response messagecacheKeyResolver - cache key resolver used by cache storagestorage - internal cache storagecallback - result callbackCopyright © 1999–2021 The Apache Software Foundation. All rights reserved.