How to use the sniffer with Java High Rest Level

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);

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