Class Rest5Client.FailureListener

java.lang.Object
co.elastic.clients.transport.rest5_client.low_level.Rest5Client.FailureListener
Direct Known Subclasses:
SniffOnFailureListener
Enclosing class:
Rest5Client

public static class Rest5Client.FailureListener extends 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 Details

    • FailureListener

      public FailureListener()
  • Method Details

    • onFailure

      public void onFailure(Node node)
      Notifies that the node provided as argument has just failed