List of usage examples for org.apache.http.impl.client DefaultServiceUnavailableRetryStrategy DefaultServiceUnavailableRetryStrategy
public 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 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()); }