|
@ -54,7 +54,7 @@ public class ElasticFactory {
|
|
|
// Construct a new Jest client according to configuration via factory
|
|
|
factory = new JestClientFactory();
|
|
|
HttpClientConfig httpClientConfig = new HttpClientConfig
|
|
|
.Builder(Arrays.asList(hostArray))
|
|
|
.Builder(Arrays.asList(hostArray))//http://59.61.92.90:9065,http://59.61.92.90:9067
|
|
|
.multiThreaded(true)
|
|
|
.maxTotalConnection(50)// 最大链接
|
|
|
.maxConnectionIdleTime(120, TimeUnit.SECONDS)//链接等待时间
|