Example usage for org.apache.http.client HttpRequestRetryHandler interface-usage

List of usage examples for org.apache.http.client HttpRequestRetryHandler interface-usage

Introduction

In this page you can find the example usage for org.apache.http.client HttpRequestRetryHandler interface-usage.

Usage

From source file reconf.infra.http.layer.RetryHandler.java

public class RetryHandler implements HttpRequestRetryHandler {

    private int maxRetry = 3;

    public RetryHandler(int maxRetry) {
        this.maxRetry = maxRetry;

From source file code.google.restclient.core.CustomRetryHandler.java

/**
 * @author Yaduvendra.Singh
 */
public class CustomRetryHandler implements HttpRequestRetryHandler {

    private static final Logger LOG = Logger.getLogger(CustomRetryHandler.class);

From source file org.forgerock.openig.util.NoRetryHttpRequestRetryHandler.java

/**
 * A very simple implementation that always returns false for every exception which effectively turns off any
 * request retries.
 */
public class NoRetryHttpRequestRetryHandler implements HttpRequestRetryHandler {

From source file org.codice.solr.factory.SolrHttpRequestRetryHandler.java

public class SolrHttpRequestRetryHandler implements HttpRequestRetryHandler {

    private static final Integer MAX_RETRY_COUNT = 11;

    private static final Logger LOGGER = LoggerFactory.getLogger(SolrHttpRequestRetryHandler.class);

From source file org.blocks4j.reconf.infra.http.layer.RetryHandler.java

public class RetryHandler implements HttpRequestRetryHandler {

    private int maxRetry = 3;

    public RetryHandler(int maxRetry) {
        this.maxRetry = maxRetry;

From source file com.github.parisoft.resty.request.retry.RequestRetryHandler.java

/**
 * Thread-safe implementation of {@link HttpRequestRetryHandler}.<br>
 * <br>
 * A request retry don't occurs when:
 * <ul>
 * <li>The requests attempts reached this maximum retries counter</li>

From source file org.codice.solr.factory.impl.SolrHttpRequestRetryHandler.java

import org.apache.http.protocol.HttpContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Retry handler for Solr Http requests sent through Http clients.

From source file com.DGSD.DGUtils.Http.BetterHttpRequestRetryHandler.java

public class BetterHttpRequestRetryHandler implements HttpRequestRetryHandler {

    // TODO: make configurable
    private static final int RETRY_SLEEP_TIME_MILLIS = 1500;

    private static HashSet<Class<?>> exceptionWhitelist = new HashSet<Class<?>>();

From source file com.whut.afinal.http.RetryHandler.java

public class RetryHandler implements HttpRequestRetryHandler {
    private static final int RETRY_SLEEP_TIME_MILLIS = 1000;

    //
    private static HashSet<Class<?>> exceptionWhitelist = new HashSet<Class<?>>();

From source file net.tsz.afinal.http.RetryHandler.java

public class RetryHandler implements HttpRequestRetryHandler {
    private static final int RETRY_SLEEP_TIME_MILLIS = 1000;

    //
    private static HashSet<Class<?>> exceptionWhitelist = new HashSet<Class<?>>();