Interface ConnectionListener


  • public interface ConnectionListener
    Applications can use a ConnectionListener to track the status of a Connection. The listener is configured in the Options at creation time.
    • Method Detail

      • connectionEvent

        void connectionEvent​(Connection conn,
                             ConnectionListener.Events type)
        Connection related events that occur asynchronously in the client code are sent to a ConnectionListener via a single method. The ConnectionListener can use the event type to decide what to do about the problem.
        Parameters:
        conn - the connection associated with the error
        type - the type of event that has occurred