Interface FrameHandler

    • Method Detail

      • setTimeout

        void setTimeout​(int timeoutMs)
                 throws SocketException
        Set the underlying socket's read timeout in milliseconds, if applicable.
        Parameters:
        timeoutMs - The timeout in milliseconds
        Throws:
        SocketException
      • getTimeout

        int getTimeout()
                throws SocketException
        Get the underlying socket's read timeout in milliseconds.
        Returns:
        The timeout in milliseconds
        Throws:
        SocketException
      • sendHeader

        void sendHeader()
                 throws IOException
        Send the initial connection header, thus kickstarting the AMQP protocol version negotiation process and putting the underlying connection in a state such that the next layer of startup can proceed.
        Throws:
        IOException - if there is a problem accessing the connection
      • readFrame

        Frame readFrame()
                 throws IOException
        Read a Frame from the underlying data connection.
        Returns:
        an incoming Frame, or null if there is none
        Throws:
        IOException - if there is a problem accessing the connection
        SocketTimeoutException - if the underlying read times out
      • writeFrame

        void writeFrame​(Frame frame)
                 throws IOException
        Write a Frame to the underlying data connection.
        Parameters:
        frame - the Frame to transmit
        Throws:
        IOException - if there is a problem accessing the connection
      • flush

        void flush()
            throws IOException
        Flush the underlying data connection.
        Throws:
        IOException - if there is a problem accessing the connection
      • close

        void close()
        Close the underlying data connection (complaint not permitted).