public static class
BaseApiService.RetryRequestInitializer
extends Object
implements HttpRequestInitializer
implements HttpRequestInitializer
Adds a backoff and retry response and exception handlers to the HttpRequest
.
Public Constructor Summary
BaseApiService.RetryRequestInitializer(RetryPolicy retryPolicy)
Create an instance of
BaseApiService.RetryRequestInitializer based on specified RetryPolicy . |
Public Method Summary
void |
initialize(HttpRequest request)
Initialize
HttpRequest to setup exponential back off and automatic retries. |
Inherited Method Summary
Public Constructors
public BaseApiService.RetryRequestInitializer (RetryPolicy retryPolicy)
Create an instance of BaseApiService.RetryRequestInitializer
based on specified RetryPolicy
.
Parameters
retryPolicy | to setup exponential back off and automatic retries. |
---|
Public Methods
public void initialize (HttpRequest request)
Initialize HttpRequest
to setup exponential back off and automatic retries.
Parameters
request |
---|
Throws
IOException |
---|