Interface Gateway

    • Method Detail

      • connect

        void connect()
              throws IOException
        Attempts to establish a connection to the remote site.
        Throws:
        IOException - There was an error establishing the connection.
      • disconnect

        void disconnect​(boolean dueToError)
        Drops the established connection.
        Parameters:
        dueToError - - when false user wished to close connection; when true there was a problem and we had to close it
      • isConnected

        boolean isConnected()
        Gets a value specifying whether the connection to the remote site is established.
        Returns:
        Value specifying whether the connection to the remote site is established.
      • getLastReceivedMsgTimestamp

        long getLastReceivedMsgTimestamp()
        Gets last timestamp in unix millis when the last msg was received
        Returns:
        timestamp when the last msg was received
      • getId

        String getId()
        Gets gateway id (hostname, port, ...)
        Returns:
        gateway identification