Interface TransportConnectionListener

All Known Implementing Classes:
ConnectionManager.DelegatingNodeConnectionListener, ProxyConnectionStrategy, RemoteConnectionStrategy, SniffConnectionStrategy, TransportService

public interface TransportConnectionListener
A listener interface that allows to react on transport events. All methods may be executed on network threads. Consumers must fork in the case of long running or blocking operations.
  • Method Details

    • onConnectionOpened

      default void onConnectionOpened(Transport.Connection connection)
      Called once a connection was opened
      Parameters:
      connection - the connection
    • onConnectionClosed

      default void onConnectionClosed(Transport.Connection connection)
      Called once a connection ws closed.
      Parameters:
      connection - the closed connection
    • onNodeConnected

      default void onNodeConnected(DiscoveryNode node, Transport.Connection connection)
      Called once a node connection is opened and registered.
    • onNodeDisconnected

      default void onNodeDisconnected(DiscoveryNode node, Transport.Connection connection)
      Called once a node connection is closed and unregistered.