Package org.eclipse.cbi.maven.http
Class RetryHttpClient
- java.lang.Object
-
- org.eclipse.cbi.maven.http.RetryHttpClient
-
- All Implemented Interfaces:
HttpClient
- Direct Known Subclasses:
AutoValue_RetryHttpClient
public abstract class RetryHttpClient extends java.lang.Object implements HttpClient
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RetryHttpClient.Builder
-
Constructor Summary
Constructors Constructor Description RetryHttpClient()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
maxRetries
abstract int maxRetries()
-
retryInterval
abstract long retryInterval()
-
retryIntervalUnit
abstract java.util.concurrent.TimeUnit retryIntervalUnit()
-
delegate
abstract HttpClient delegate()
-
log
abstract Logger log()
-
send
public boolean send(HttpRequest request, CompletionListener completionListener) throws java.io.IOException
- Specified by:
send
in interfaceHttpClient
- Throws:
java.io.IOException
-
send
public boolean send(HttpRequest request, HttpRequest.Config config, CompletionListener completionListener) throws java.io.IOException
- Specified by:
send
in interfaceHttpClient
- Throws:
java.io.IOException
-
retryRequestOn
public static RetryHttpClient.Builder retryRequestOn(HttpClient client)
-
-