Class ApacheHttpClient5Transport.FailureListener
- java.lang.Object
-
- org.opensearch.client.transport.httpclient5.ApacheHttpClient5Transport.FailureListener
-
- Enclosing class:
- ApacheHttpClient5Transport
public static class ApacheHttpClient5Transport.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()
Create aApacheHttpClient5Transport.FailureListener
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onFailure(Node node)
Notifies that the node provided as argument has just failed.
-
-
-
Constructor Detail
-
FailureListener
public FailureListener()
Create aApacheHttpClient5Transport.FailureListener
instance.
-
-
Method Detail
-
onFailure
public void onFailure(Node node)
Notifies that the node provided as argument has just failed.- Parameters:
node
- The node which has failed.
-
-