mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-24 23:27:25 -04:00
LLRC RequestOptions add RequestConfig (#57972)
Different kinds of requests may need different request options from the client default. Users can optionally set RequestConfig on a single request's RequestOptions to override the default. Without this, socketTimeout can only set at RestClient initialization.
This commit is contained in:
parent
4542dfc107
commit
974f6e66b6
5 changed files with 75 additions and 3 deletions
|
@ -25,6 +25,13 @@ seconds).
|
|||
include-tagged::{doc-tests}/RestClientDocumentation.java[rest-client-config-timeouts]
|
||||
--------------------------------------------------
|
||||
|
||||
timeouts also can set by RequestOptions per request.this will override RestClient customizeRequestConfig.
|
||||
|
||||
["source","java",subs="attributes,callouts,macros"]
|
||||
--------------------------------------------------
|
||||
include-tagged::{doc-tests}/RestClientDocumentation.java[rest-client-config-request-options-timeouts]
|
||||
--------------------------------------------------
|
||||
|
||||
=== Number of threads
|
||||
|
||||
The Apache Http Async Client starts by default one dispatcher thread, and a
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue