Class TEndpointTransport

    • Field Detail

      • knownMessageSize

        protected long knownMessageSize
      • remainingMessageSize

        protected long remainingMessageSize
    • Method Detail

      • getMaxMessageSize

        protected long getMaxMessageSize()
      • getMaxFrameSize

        public int getMaxFrameSize()
      • setMaxFrameSize

        public void setMaxFrameSize​(int maxFrameSize)
      • resetConsumedMessageSize

        protected void resetConsumedMessageSize​(long newSize)
                                         throws TTransportException
        Resets RemainingMessageSize to the configured maximum
        Parameters:
        newSize -
        Throws:
        TTransportException
      • updateKnownMessageSize

        public void updateKnownMessageSize​(long size)
                                    throws TTransportException
        Updates RemainingMessageSize to reflect then known real message size (e.g. framed transport). Will throw if we already consumed too many bytes or if the new size is larger than allowed.
        Specified by:
        updateKnownMessageSize in class TTransport
        Parameters:
        size -
        Throws:
        TTransportException
      • countConsumedMessageBytes

        protected void countConsumedMessageBytes​(long numBytes)
                                          throws TTransportException
        Consumes numBytes from the RemainingMessageSize.
        Parameters:
        numBytes -
        Throws:
        TTransportException