Package org.elasticsearch.client
Class RestClient.FailureListener
java.lang.Object
org.elasticsearch.client.RestClient.FailureListener
- Enclosing class:
- RestClient
public static class RestClient.FailureListener
extends java.lang.Object
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 Constructor Description FailureListener()
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
FailureListener
public FailureListener()
-
-
Method Details
-
onFailure
Notifies that the node provided as argument has just failed
-