public class RetryingHttpService extends Object implements HttpService
| Modifier and Type | Class and Description |
|---|---|
static class |
RetryingHttpService.RetryingHttpServiceException |
| Constructor and Description |
|---|
RetryingHttpService(BuckEventBus eventBus,
HttpService decoratedService,
String counterCategory,
int maxNumberOfRetries) |
RetryingHttpService(BuckEventBus eventBus,
HttpService decoratedService,
String counterCategory,
int maxNumberOfRetries,
long retryRequestIntervalMillis) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
HttpResponse |
makeRequest(String path,
okhttp3.Request.Builder request) |
public RetryingHttpService(BuckEventBus eventBus, HttpService decoratedService, String counterCategory, int maxNumberOfRetries)
public RetryingHttpService(BuckEventBus eventBus, HttpService decoratedService, String counterCategory, int maxNumberOfRetries, long retryRequestIntervalMillis)
public HttpResponse makeRequest(String path, okhttp3.Request.Builder request) throws IOException
makeRequest in interface HttpServiceIOExceptionpublic void close()
close in interface HttpServiceclose in interface AutoCloseable