Skip to content

Commit

Permalink
Update javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
ct-sdks[bot] committed Jan 11, 2024
1 parent 9468bb7 commit c255503
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion javadoc/com/commercetools/docs/meta/ClientTuning.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ <h3 id=policy-middleware>PolicyMiddleware</h3>
<p>The <a href="../../../../io/vrap/rmf/base/client/http/PolicyMiddleware.html" title="interface in io.vrap.rmf.base.client.http"><code>PolicyMiddleware</code></a> configures a client to handle failures like gateway timeouts
and version conflicts through retrying the request. Limiting the number of parallel requests or timeouts</p>

<p>A best practice example to retry on gateway timeouts and similar problems</p>
<p>A best practice example to retry on gateway timeouts and similar problems.</p>

<div id="example-ExamplesTest-retry--%s" class=code-example><pre><code class='java'>ProjectApiRoot apiRoot = ApiRootBuilder.of()
.defaultClient(ClientCredentials.of().withClientId("clientId").withClientSecret("clientSecret").build(),
Expand All @@ -101,6 +101,8 @@ <h3 id=policy-middleware>PolicyMiddleware</h3>
.build("my-project");
</code><p>See the <a href="https://github.com/commercetools/commercetools-sdk-java-v2/blob/master/commercetools/internal-docs/src/test/java/example/ExamplesTest.java" target="_blank">test code</a>.</pre></div>

<p>For more configuration options see <a href="../../../../io/vrap/rmf/base/client/http/PolicyBuilder.html" title="class in io.vrap.rmf.base.client.http"><code>PolicyBuilder</code></a></p>

<h3 id=configure-http-client>Configure the underlying http client</h3>

<p>The <a href="../../api/defaultconfig/ApiRootBuilder.html" title="class in com.commercetools.api.defaultconfig"><code>ApiRootBuilder</code></a> has create methods which allow to pass a preconfigured HTTP client.</p>
Expand Down

0 comments on commit c255503

Please sign in to comment.