Class 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"
    • 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 by AsynchronousValidator 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • 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 by AsynchronousValidator to schedule a revalidation.
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
      • getIdentifier

        java.lang.String getIdentifier()