public class DefaultRetryStrategy extends java.lang.Object implements IRetryStrategy
| Constructor and Description |
|---|
DefaultRetryStrategy() |
| Modifier and Type | Method and Description |
|---|---|
RetryInterceptor |
createRetryInterceptor(int maxRetries,
int maxRetryInterval,
Authenticator authenticator)
Return an implementation of the
IRetryInterceptor interface
that is capable of retrying failed requests. |
public RetryInterceptor createRetryInterceptor(int maxRetries, int maxRetryInterval, Authenticator authenticator)
IRetryStrategyIRetryInterceptor interface
that is capable of retrying failed requests.createRetryInterceptor in interface IRetryStrategymaxRetries - the maximum number of retries to be attempted by the retry interceptormaxRetryInterval - the maximum interval (in seconds)authenticator - the Authenticator instance to be used to authenticate retried requestsCopyright © 2022 IBM Cloud Developer Experience. All rights reserved.