Two new features are related to the Java low-level REST client. Let's discuss these as follows:
- Made warning behaviors pluggable per request: This feature allows us to set the desired behaviors to handle the warning for each request. The Request class has a setOptions method to set the options using a RequestOptions.Builder class. In the RequestOptions.Builder class, there is a setWarningsHandler() method with which we can control the behavior of the handler. Two modes are provided, permissive and strict.
- Added PreferHasAttributeNodeSelector: This feature allows us to select a preferred node with a specified attribute. If there is no node with the specified attribute, another node will still be selected. The RestClientBuilder ...