public static RetryPolicy defaultClientRetry ( Duration maxRetryDuration , Duration baseSleepMs , Duration maxSleepMs ) { return ExponentialTimeBoundedRetry . builder ( ) . withMaxDuration ( maxRetryDuration ) . withInitialSleep ( baseSleepMs ) . withMaxSleep ( maxSleepMs ) . build ( ) ; }
Gives a ClientRetry based on the given parameters .