RetryHandler Class
- java.
lang. Object - com.
microsoft. bot. restclient. retry. RetryHandler
- com.
Implements
public final class RetryHandler
implements okhttp3.Interceptor
An instance of this interceptor placed in the request pipeline handles retriable errors.
Constructor Summary
| Constructor | Description |
|---|---|
| RetryHandler() |
Initialized an instance of RetryHandler class. |
| RetryHandler(RetryStrategy retryStrategy) |
Initialized an instance of RetryHandler class. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| okhttp3.Response | intercept(Interceptor.Chain chain) |
|
Retry |
strategy() |
Methods inherited from java.lang.Object
Constructor Details
RetryHandler
public RetryHandler()
Initialized an instance of RetryHandler class. Sets default retry strategy base on Exponential Backoff.
RetryHandler
public RetryHandler(RetryStrategy retryStrategy)
Initialized an instance of RetryHandler class.
Parameters:
Method Details
intercept
public Response intercept(Interceptor.Chain chain)
Parameters:
Throws:
strategy
public RetryStrategy strategy()
Returns: