# BulkProcessor for new Java API Client

**URL:** <https://discuss.elastic.co/t/bulkprocessor-for-new-java-api-client/298628>\
**Category:** Elasticsearch\
**Tags:** language-clients\
**Created:** [March 2, 2022, 2:03pm UTC](https://discuss.elastic.co/t/bulkprocessor-for-new-java-api-client/298628 "2022-03-02T14:03:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![UglyBarnacle](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/uglybarnacle/32/47961_2.png) [@UglyBarnacle](https://discuss.elastic.co/u/UglyBarnacle)\
**Post date:** [March 2, 2022, 2:03pm UTC](https://discuss.elastic.co/t/bulkprocessor-for-new-java-api-client/298628/1 "2022-03-02T14:03:43Z")

</div>

Hi,

Currently we are using es7.17.x in our environment and now evaluating what is necessary to upgrade to the new es8.  
So far we slowly started replacing the RestHighLevelClient with the new JavaAPI Client and then ideally omitting dependencies on the whole core project.  
So far so good, now we ended up at the BulkProcessor, which is inside the core project (are there any plans moving it out there? ^^) and it does not accept the new Client as parameter.

How can we replace this convenient piece of class - or what is the replacement?  
Thanks.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 2, 2022, 2:19pm UTC](https://discuss.elastic.co/t/bulkprocessor-for-new-java-api-client/298628/2 "2022-03-02T14:19:57Z")

</div>

There's indeed a plan to add it again.  
You could also write your own implementation.

Cc @swallez

---

<div class="post-metadata">

**Author:** ![swallez](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/swallez/32/11972_2.png) [@swallez](https://discuss.elastic.co/u/swallez)\
**Post date:** [March 3, 2022, 3:30pm UTC](https://discuss.elastic.co/t/bulkprocessor-for-new-java-api-client/298628/3 "2022-03-03T15:30:34Z")

</div>

As @dadoonet said, there's no replacement yet in the new Java API client but it's high on the priority list.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 31, 2022, 3:31pm UTC](https://discuss.elastic.co/t/bulkprocessor-for-new-java-api-client/298628/4 "2022-03-31T15:31:12Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
