hi,everyone!
I want to use the sniffer in 6.5.1 version,but I couldn't find the API to operate High Rest Level. My code is following:
SniffOnFailureListener sniffOnFailureListener = new SniffOnFailureListener();
Sniffer sniffer = Sniffer.builder(builder.build())
.setSniffAfterFailureDelayMillis(30000)
.build();
sniffOnFailureListener.setSniffer(sniffer);
builder = RestClient.builder(httpHost)
.setFailureListener(sniffOnFailureListener);
if (uniqueConnectTimeConfig) {
setConnectTimeOutConfig();
}
if (uniqueConnectNumConfig) {
setMutiConnectConfig();
}
client = new RestHighLevelClient(builder);