Skip to content

Commit 8ac49dd

Browse files
committed
release notes 9.0.4
1 parent bc7641f commit 8ac49dd

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

docs/release-notes/9-0-4.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
navigation_title: "9.0.4"
3+
---
4+
# Elasticsearch Java Client 9.0.4 [elasticsearch-java-client-904]
5+
6+
Discover what changed in the 9.0.4 version of the java client.
7+
8+
### Features and enhancements [elasticsearch-java-client-900-features-enhancements]
9+
10+
::::{dropdown} Added callbacks to Rest5Client builder
11+
Rest5ClientBuilder now has the same level of in depth configuration the Legacy RestClientBuilder has, allowing to customize the underlying Apache HttpClient through callback functions; for example, this is how to configure the IOReactor's thread count:
12+
```java
13+
Rest5ClientBuilder builder = Rest5Client
14+
.builder(new HttpHost("localhost", 9200))
15+
.setHttpClientConfigCallback(c -> c
16+
.setIOReactorConfig(IOReactorConfig.custom()
17+
.setIoThreadCount(1).build()
18+
)
19+
);
20+
```
21+
And this is how to customize the response timeout:
22+
```java
23+
Rest5ClientBuilder builder = Rest5Client
24+
.builder(new HttpHost("localhost", 9200))
25+
.setRequestConfigCallback(r -> r
26+
.setConnectTimeout(Timeout.of(5000, TimeUnit.MILLISECONDS))
27+
.setResponseTimeout(Timeout.of(30000, TimeUnit.MILLISECONDS))
28+
.build()
29+
);
30+
```
31+
::::

docs/release-notes/toc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ toc:
22
- file: index.md
33
- file: known-issues.md
44
- file: 9-0-0.md
5+
- file: 9-0-4.md

0 commit comments

Comments
 (0)