Example usage for org.apache.http.impl.client DefaultServiceUnavailableRetryStrategy DefaultServiceUnavailableRetryStrategy

List of usage examples for org.apache.http.impl.client DefaultServiceUnavailableRetryStrategy DefaultServiceUnavailableRetryStrategy

Introduction

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

Prototype

public DefaultServiceUnavailableRetryStrategy() 

Source Link

Usage

From source file:org.apache.http.impl.client.AutoRetryHttpClient.java

/**
 * Constructs a {@code AutoRetryHttpClient} with default caching settings that
 * stores cache entries in memory and uses a vanilla
 * {@link DefaultHttpClient} for backend requests.
 *//*from   w w w  . ja v  a 2 s.  c  om*/
public AutoRetryHttpClient() {
    this(new DefaultHttpClient(), new DefaultServiceUnavailableRetryStrategy());
}

From source file:org.apache.http.impl.client.AutoRetryHttpClient.java

/**
 * Constructs a {@code AutoRetryHttpClient} with default caching settings that
 * stores cache entries in memory and uses the given {@link HttpClient} for
 * backend requests./*ww w.ja  v a  2  s. c o m*/
 *
 * @param client
 *            used to make origin requests
 */
public AutoRetryHttpClient(final HttpClient client) {
    this(client, new DefaultServiceUnavailableRetryStrategy());
}