Elasticsearch: Add support for configuring REST client timeouts

Specifically, allow for configuring the initial connect timeout and the
general socket timeout.

Trying to migrate an existing gerrit instance from LUCENE to
ElasticSearch resulted in the re-index failing due to socket timeouts.

Change-Id: Icd42c26c2671a3b4bf64abe5f59951f65c6339b4
2 files changed
tree: de20e8d53cf7f039b5f0a50d3805ee17f341e090
  1. java/
  2. javatests/