Example usage for org.apache.http.impl.client.cache AsynchronousValidator AsynchronousValidator

List of usage examples for org.apache.http.impl.client.cache AsynchronousValidator AsynchronousValidator

Introduction

In this page you can find the example usage for org.apache.http.impl.client.cache AsynchronousValidator AsynchronousValidator.

Prototype

AsynchronousValidator(CachingHttpClient cachingClient, ExecutorService executor) 

Source Link

Document

Create AsynchronousValidator which will make revalidation requests using the supplied CachingHttpClient and ExecutorService .

Usage

From source file:org.apache.http.impl.client.cache.CachingHttpClient.java

private AsynchronousValidator makeAsynchronousValidator(CacheConfig config) {
    if (config.getAsynchronousWorkersMax() > 0) {
        return new AsynchronousValidator(this, config);
    }//from  w w  w. j a va 2  s.c o m
    return null;
}