Interface ProtocolLayer.Send

    • Method Detail

      • doSend

        void doSend​(@NonNull
                    ByteBuffer data)
             throws IOException
        Sends data to the lower layer.
        Parameters:
        data - the data to send. Any data consumed from the ByteBuffer can be assumed as processed. Any data not consumed from the ByteBuffer will be the responsibility of the caller to resubmit in subsequent calls.
        Throws:
        IOException - if there was an error during processing of the data.
      • isSendOpen

        boolean isSendOpen()
        Tracks if this layer is submitting data to be sent via doSend(ByteBuffer). Once this method returns false it must always return false and can be assumed to behave in this way.
        Returns:
        true if submitting data to be sent via doSend(ByteBuffer).