Interface D2ConnectorEventsListener

  • All Known Subinterfaces:
    D2ConnectorEventsListener3


    public interface D2ConnectorEventsListener
    Listener interface for receiving asynchronous events that occured on D2Connector instance.
    • Method Detail

      • onClose

        void onClose​(CloseReason reason)
        Called when D2Connector instance is being disconnected.
        Parameters:
        reason - reason of being disconnected
      • onConnectionOpened

        void onConnectionOpened​(D2Connector connector)
        Called when new connection is established.
        Parameters:
        connector - new instance of connector