Package org.apache.http.impl.client

Examples of org.apache.http.impl.client.DefaultServiceUnavailableRetryStrategy


        RequestConfig config = RequestConfig.custom()
            .setConnectTimeout(timeout)
            .build();
        httpClient = HttpClientBuilder.create()
            .setDefaultRequestConfig(config)
            .setServiceUnavailableRetryStrategy(new DefaultServiceUnavailableRetryStrategy(maxRetries, retryInterval))
            .build();
    }
View Full Code Here

TOP

Related Classes of org.apache.http.impl.client.DefaultServiceUnavailableRetryStrategy

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.