Interface MessageAppender

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void appendFrame​(java.nio.ByteBuffer framePayload, boolean isLast)
      Append the frame payload to the message.
      void messageComplete()
      Notification that message is to be considered complete.
    • Method Detail

      • appendFrame

        void appendFrame​(java.nio.ByteBuffer framePayload,
                         boolean isLast)
                  throws java.io.IOException
        Append the frame payload to the message.
        Parameters:
        framePayload - the frame payload to append.
        isLast - flag indicating if this is the last part of the message or not.
        Throws:
        java.io.IOException - if unable to append the frame payload
      • messageComplete

        void messageComplete()
        Notification that message is to be considered complete.

        Any cleanup or final actions should be taken here.