Interface RedundantConnectionEventListener



  • public interface RedundantConnectionEventListener
    An event listener that is notified on connection state changes by RedundantConnectionManager.
    • Method Detail

      • onConnectionEstablished

        void onConnectionEstablished​(ConnectionParameters parameters)
        Method is called when new instance of D2Connector has been obtained.
        Parameters:
        parameters - remote address and port of connector
      • onConnectionLost

        void onConnectionLost​(ConnectionParameters parameters,
                              CloseReason reason)
        Method is called when instance of D2Connector has been disconnected.
        Parameters:
        parameters - remote address and port of connector
        reason - specifies the close reason
      • onNewHotConnectorRecognized

        void onNewHotConnectorRecognized​(D2Connector newHotConnector)
        Called when another kernel becomes HOT and reconnection is required.
        Parameters:
        newHotConnector - connection to HOT kernel.
      • onHotConnectorLost

        void onHotConnectorLost​(D2Connector previousHotConnector)
        Called when previously HOT kernel changes state. Another kernel should become HOT shortly.
        Parameters:
        previousHotConnector - connection to previously HOT kernel.