Skip to content

v9.0.4

Latest
Compare
Choose a tag to compare
@l-trotta l-trotta released this 18 Jul 12:29
· 110 commits to main since this release

What's Changed

Reintroduced callback functions to allow in depth configuration of Rest5ClientBuilder, like the legacy RestClientBuilder has.
Examples:

Rest5ClientBuilder builder = Rest5Client
    .builder(new HttpHost("localhost", 9200))
    .setHttpClientConfigCallback(c -> c
        .setIOReactorConfig(IOReactorConfig.custom()
            .setIoThreadCount(1).build()
        )
    );
Rest5ClientBuilder builder = Rest5Client
    .builder(new HttpHost("localhost", 9200))
    .setRequestConfigCallback(r -> r
        .setConnectTimeout(Timeout.of(5000, TimeUnit.MILLISECONDS))
        .setResponseTimeout(Timeout.of(30000, TimeUnit.MILLISECONDS))
        .build()
    );

Full Changelog: v9.0.3...v9.0.4