Skip to navigation

4.12.0

(feat): Add client builder options to customize the retry backoff schedule, alongside the existing maxRetries option: initialRetryDelayMillis (default 1000), maxRetryDelayMillis (default 60000), and retryJitterFactor (default 0.2). The options are available on both the root client builder and ClientOptions.Builder.

Client client = Client.builder()
.maxRetries(3)
.initialRetryDelayMillis(500)
.maxRetryDelayMillis(30000)
.retryJitterFactor(0.1)
.build();