Package org.opensearch.client
Class RestClient.FailureListener
java.lang.Object
org.opensearch.client.RestClient.FailureListener
- Enclosing class:
RestClient
Listener that allows to be notified whenever a failure happens. Useful when sniffing is enabled, so that we can sniff on failure.
The default implementation is a no-op.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
FailureListener
public FailureListener()Create aRestClient.FailureListenerinstance.
-
-
Method Details
-
onFailure
Notifies that the node provided as argument has just failed.- Parameters:
node- The node which has failed.
-