OpenSearch/docs/reference/migration/migrate_7_0/low_level_restclient.asciidoc

25 lines
823 B
Plaintext
Raw Normal View History

[float]
[[breaking_70_low_level_restclient_changes]]
=== Low-level REST client changes
[float]
==== Support for `maxRetryTimeout` removed from RestClient
`RestClient` and `RestClientBuilder` no longer support the `maxRetryTimeout`
setting. The setting was removed as its counting mechanism was not accurate
and caused issues while adding little value.
[float]
==== Deprecated flavors of performRequest have been removed
We deprecated the flavors of `performRequest` and `performRequestAsync` that
do not take `Request` objects in 6.4.0 in favor of the flavors that take
`Request` objects because those methods can be extended without breaking
backwards compatibility.
[float]
==== Removed setHosts
We deprecated `setHosts` in 6.4.0 in favor of `setNodes` because it supports
host metadata used by the `NodeSelector`.