Interface IConnection


  • public interface IConnection
    Since:
    Mar 5, 2006
    • Method Detail

      • beginTransaction

        void beginTransaction()
        Start a transaction on this connection
      • read

        NCType read​(int timeout)
             throws NativeCommException
        Reads an NCType message object from this connection.
        Parameters:
        timeout - - timeout in milliseconds
        Returns:
        the read NCType object
        Throws:
        NativeCommException - on error
      • endTransaction

        void endTransaction()
        End a transaction on this connection
      • isValid

        boolean isValid()
        Returns:
        true if this instance is ready to execute further requests
      • handshake

        NCMap handshake()
        Returns:
        the handshake dictionary
      • dispose

        void dispose()
        Dispose the connection.
      • invalidate

        void invalidate()
        Invalidate the connection. Marks the connection for future disposal, but does not cancel currently running requests.