# Java rest client : how to retry, if network blinking?

**URL:** <https://discuss.elastic.co/t/java-rest-client-how-to-retry-if-network-blinking/156073>\
**Category:** Elasticsearch\
**Created:** [November 9, 2018, 3:13pm UTC](https://discuss.elastic.co/t/java-rest-client-how-to-retry-if-network-blinking/156073 "2018-11-09T15:13:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nikolay.Bolobanov](https://avatars.discourse-cdn.com/v4/letter/n/50afbb/32.png) [@Nikolay.Bolobanov](https://discuss.elastic.co/u/Nikolay.Bolobanov)\
**Post date:** [November 9, 2018, 3:13pm UTC](https://discuss.elastic.co/t/java-rest-client-how-to-retry-if-network-blinking/156073/1 "2018-11-09T15:13:30Z")

</div>

Hi!  
Low level rest client retry only case 502, 503 or 504 response statuses. I can't change retry logic when in java.net.ConnectException the request was sent to other nodes ?  
Do I understand correctly ?

Could you point out in principle the possibility or impossibility of customasing retry logic?

---

<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:** [December 7, 2018, 3:13pm UTC](https://discuss.elastic.co/t/java-rest-client-how-to-retry-if-network-blinking/156073/2 "2018-12-07T15:13:31Z")

</div>

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