Interface ConnectionEventListener

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 interface ConnectionEventListener
Listener interface for connection lifecycle events.

Implementations can register with a connection to receive notifications about state changes, health check results, and reconnection attempts.

  • Method Details

    • onConnectionEvent

      void onConnectionEvent(Connection connection, ConnectionEvent event)
      Called when a connection event occurs.
      Parameters:
      connection - The connection that fired the event
      event - The event that occurred