public class SimpleTextMessage extends Object implements MessageAppender
Modifier and Type | Field and Description |
---|---|
protected boolean |
finished |
protected Utf8StringBuilder |
utf |
Constructor and Description |
---|
SimpleTextMessage(EventDriver onEvent) |
Modifier and Type | Method and Description |
---|---|
void |
appendFrame(ByteBuffer payload,
boolean isLast)
Append the frame payload to the message.
|
void |
messageComplete()
Notification that message is to be considered complete.
|
protected final Utf8StringBuilder utf
protected boolean finished
public SimpleTextMessage(EventDriver onEvent)
public void appendFrame(ByteBuffer payload, boolean isLast) throws IOException
MessageAppender
appendFrame
in interface MessageAppender
payload
- the frame payload to append.isLast
- flag indicating if this is the last part of the message or not.IOException
- if unable to append the frame payloadpublic void messageComplete()
MessageAppender
Any cleanup or final actions should be taken here.
messageComplete
in interface MessageAppender
Copyright © 1995-2015 Webtide. All Rights Reserved.