public abstract class RetryHttpClient extends java.lang.Object implements HttpClient
Modifier and Type | Class and Description |
---|---|
static class |
RetryHttpClient.Builder |
Constructor and Description |
---|
RetryHttpClient() |
Modifier and Type | Method and Description |
---|---|
(package private) abstract HttpClient |
delegate() |
(package private) abstract Logger |
log() |
(package private) abstract int |
maxRetries() |
(package private) abstract long |
retryInterval() |
(package private) abstract java.util.concurrent.TimeUnit |
retryIntervalUnit() |
static RetryHttpClient.Builder |
retryRequestOn(HttpClient client) |
boolean |
send(HttpRequest request,
CompletionListener completionListener) |
boolean |
send(HttpRequest request,
HttpRequest.Config config,
CompletionListener completionListener) |
abstract int maxRetries()
abstract long retryInterval()
abstract java.util.concurrent.TimeUnit retryIntervalUnit()
abstract HttpClient delegate()
abstract Logger log()
public boolean send(HttpRequest request, CompletionListener completionListener) throws java.io.IOException
send
in interface HttpClient
java.io.IOException
public boolean send(HttpRequest request, HttpRequest.Config config, CompletionListener completionListener) throws java.io.IOException
send
in interface HttpClient
java.io.IOException
public static RetryHttpClient.Builder retryRequestOn(HttpClient client)