Duration shouldRetry(int attempts,
Returns the duration the caller need to wait before retrying or null if
no retry should be attempted according to the retry policy.
attempts - the number of attempts so far
exception - the request exception
- the duration to wait for the next attempt or null if no retry should
Copyright © 2021. All rights reserved.