public class SimpleBinaryMessage extends Object implements MessageAppender
Modifier and Type | Field and Description |
---|---|
protected boolean |
finished |
protected ByteArrayOutputStream |
out |
Constructor and Description |
---|
SimpleBinaryMessage(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 ByteArrayOutputStream out
protected boolean finished
public SimpleBinaryMessage(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.