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 classRetryHttpClient.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 HttpClientdelegate()(package private) abstract Loggerlog()(package private) abstract intmaxRetries()(package private) abstract longretryInterval()(package private) abstract java.util.concurrent.TimeUnitretryIntervalUnit()static RetryHttpClient.BuilderretryRequestOn(HttpClient client)booleansend(HttpRequest request, CompletionListener completionListener)booleansend(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:
sendin interfaceHttpClient- Throws:
java.io.IOException
-
send
public boolean send(HttpRequest request, HttpRequest.Config config, CompletionListener completionListener) throws java.io.IOException
- Specified by:
sendin interfaceHttpClient- Throws:
java.io.IOException
-
retryRequestOn
public static RetryHttpClient.Builder retryRequestOn(HttpClient client)
-
-