SetRetryFixedInterval set retry to use a fixed interval.
(interval time.Duration)
| 1184 | |
| 1185 | // SetRetryFixedInterval set retry to use a fixed interval. |
| 1186 | func (r *Request) SetRetryFixedInterval(interval time.Duration) *Request { |
| 1187 | r.getRetryOption().GetRetryInterval = func(resp *Response, attempt int) time.Duration { |
| 1188 | return interval |
| 1189 | } |
| 1190 | return r |
| 1191 | } |
| 1192 | |
| 1193 | // SetRetryBackoffInterval set retry to use a capped exponential backoff with jitter. |
| 1194 | // https://aws.amazon.com/blogs/architecture/exponential-backoff-and-jitter/ |