Interface FrameHeaderReader

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void clear()
      Clear the header and make it available to read a new header.
      boolean isComplete()  
      int payloadSize()
      As the thrift sasl specification states, all sasl messages (both for negotiatiing and for sending data) should have a header to indicate the size of the payload.
      boolean read​(TTransport transport)
      (Nonblocking) Read fields from underlying transport layer.
      byte[] toBytes()  
    • Method Detail

      • payloadSize

        int payloadSize()
        As the thrift sasl specification states, all sasl messages (both for negotiatiing and for sending data) should have a header to indicate the size of the payload.
        Returns:
        size of the payload.
      • toBytes

        byte[] toBytes()
        Returns:
        The received bytes for the header.
        Throws:
        java.lang.IllegalStateException - if isComplete returns false.
      • isComplete

        boolean isComplete()
        Returns:
        true if this header has all its fields set.
      • clear

        void clear()
        Clear the header and make it available to read a new header.