Interface TransportClient.HostFailureListener

Enclosing class:
TransportClient
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface TransportClient.HostFailureListener
Listener that allows to be notified whenever a node failure / disconnect happens
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called once a node disconnect is detected.
  • Method Details

    • onNodeDisconnected

      void onNodeDisconnected(DiscoveryNode node, Exception ex)
      Called once a node disconnect is detected.
      Parameters:
      node - the node that has been disconnected
      ex - the exception causing the disconnection