﻿---
title: Elasticsearch Java REST 5 client configuration
description: As explained in Initialization, the RestClientBuilder supports providing both a RequestConfigCallback and an HttpClientConfigCallback which allow for...
url: https://www.elastic.co/elastic/docs-builder/docs/2831/reference/elasticsearch/clients/java/transport/rest5-client/config
products:
  - Elasticsearch Client
  - Elasticsearch Java Client
---

# Elasticsearch Java REST 5 client configuration
As explained in [Initialization](https://www.elastic.co/elastic/docs-builder/docs/2831/reference/elasticsearch/clients/java/transport/rest5-client/usage/initialization), the `RestClientBuilder` supports providing both a `RequestConfigCallback` and an `HttpClientConfigCallback` which allow for any customization that the Apache Async Http Client exposes. Those callbacks make it possible to modify some specific behaviour of the client without overriding every other default configuration that the `Rest5Client` is initialized with. This section describes some common scenarios that require additional configuration for the low-level Java REST Client.