Interface MessageAppender
-
- All Known Implementing Classes:
BinaryPartialMessage,BinaryPartialOnMessage,BinaryWholeMessage,MessageInputStream,MessageReader,NullMessage,SimpleBinaryMessage,SimpleTextMessage,TextPartialMessage,TextPartialOnMessage,TextWholeMessage
public interface MessageAppenderAppender for messages (used for multiple frames with continuations, and also to allow for streaming APIs)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidappendFrame(java.nio.ByteBuffer framePayload, boolean isLast)Append the frame payload to the message.voidmessageComplete()Notification that message is to be considered complete.
-
-
-
Method Detail
-
appendFrame
void appendFrame(java.nio.ByteBuffer framePayload, boolean isLast) throws java.io.IOExceptionAppend 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.
-
-