Class AsynchronousAsyncValidationRequest
- java.lang.Object
-
- org.apache.http.impl.client.cache.AsynchronousAsyncValidationRequest
-
- All Implemented Interfaces:
java.lang.Runnable
class AsynchronousAsyncValidationRequest extends java.lang.Object implements java.lang.Runnable
Class used to represent an asynchronous revalidation event, such as with "stale-while-revalidate"
-
-
Field Summary
Fields Modifier and Type Field Description private org.apache.http.client.cache.HttpCacheEntry
cacheEntry
private CachingHttpAsyncClient
cachingAsyncClient
private org.apache.http.client.cache.HttpCacheContext
clientContext
private java.lang.String
identifier
private org.apache.commons.logging.Log
log
private AsynchronousAsyncValidator
parent
private org.apache.http.client.methods.HttpRequestWrapper
request
private org.apache.http.HttpHost
target
-
Constructor Summary
Constructors Constructor Description AsynchronousAsyncValidationRequest(AsynchronousAsyncValidator parent, CachingHttpAsyncClient cachingClient, org.apache.http.HttpHost target, org.apache.http.client.methods.HttpRequestWrapper request, org.apache.http.client.cache.HttpCacheContext clientContext, org.apache.http.client.cache.HttpCacheEntry cacheEntry, java.lang.String identifier)
Used internally byAsynchronousValidator
to schedule a revalidation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) java.lang.String
getIdentifier()
void
run()
-
-
-
Field Detail
-
parent
private final AsynchronousAsyncValidator parent
-
cachingAsyncClient
private final CachingHttpAsyncClient cachingAsyncClient
-
target
private final org.apache.http.HttpHost target
-
request
private final org.apache.http.client.methods.HttpRequestWrapper request
-
clientContext
private final org.apache.http.client.cache.HttpCacheContext clientContext
-
cacheEntry
private final org.apache.http.client.cache.HttpCacheEntry cacheEntry
-
identifier
private final java.lang.String identifier
-
log
private final org.apache.commons.logging.Log log
-
-
Constructor Detail
-
AsynchronousAsyncValidationRequest
AsynchronousAsyncValidationRequest(AsynchronousAsyncValidator parent, CachingHttpAsyncClient cachingClient, org.apache.http.HttpHost target, org.apache.http.client.methods.HttpRequestWrapper request, org.apache.http.client.cache.HttpCacheContext clientContext, org.apache.http.client.cache.HttpCacheEntry cacheEntry, java.lang.String identifier)
Used internally byAsynchronousValidator
to schedule a revalidation.
-
-