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 onNodeDisconnected​(DiscoveryNode node, java.lang.Exception ex)
      Called once a node disconnect is detected.
    • Method Detail

      • onNodeDisconnected

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