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

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

Introduction

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

Prototype

AsynchronousAsyncValidator(final CachingHttpAsyncClient cachingClient, final ExecutorService executor) 

Source Link

Document

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

Usage

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

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