From c255503e326a1ce90f7417ada791220de320a17e Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Thu, 11 Jan 2024 21:08:29 +0000 Subject: [PATCH] Update javadoc --- javadoc/com/commercetools/docs/meta/ClientTuning.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/javadoc/com/commercetools/docs/meta/ClientTuning.html b/javadoc/com/commercetools/docs/meta/ClientTuning.html index ad5a818041a..4d7546eb9b8 100644 --- a/javadoc/com/commercetools/docs/meta/ClientTuning.html +++ b/javadoc/com/commercetools/docs/meta/ClientTuning.html @@ -91,7 +91,7 @@

PolicyMiddleware

The PolicyMiddleware configures a client to handle failures like gateway timeouts and version conflicts through retrying the request. Limiting the number of parallel requests or timeouts

-

A best practice example to retry on gateway timeouts and similar problems

+

A best practice example to retry on gateway timeouts and similar problems.

ProjectApiRoot apiRoot = ApiRootBuilder.of()
         .defaultClient(ClientCredentials.of().withClientId("clientId").withClientSecret("clientSecret").build(),
@@ -101,6 +101,8 @@ 

PolicyMiddleware

.build("my-project");

See the test code.

+

For more configuration options see PolicyBuilder

+

Configure the underlying http client

The ApiRootBuilder has create methods which allow to pass a preconfigured HTTP client.