Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public 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.
- Specified by:
shouldRetry in interface
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.