MessageAppenderpublic class SimpleBinaryMessage extends java.lang.Object implements MessageAppender
| Modifier and Type | Field | Description |
|---|---|---|
protected boolean |
finished |
|
protected java.io.ByteArrayOutputStream |
out |
| Constructor | Description |
|---|---|
SimpleBinaryMessage(EventDriver onEvent) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
appendFrame(java.nio.ByteBuffer payload,
boolean isLast) |
Append the frame payload to the message.
|
void |
messageComplete() |
Notification that message is to be considered complete.
|
protected final java.io.ByteArrayOutputStream out
protected boolean finished
public SimpleBinaryMessage(EventDriver onEvent)
public void appendFrame(java.nio.ByteBuffer payload,
boolean isLast)
throws java.io.IOException
MessageAppenderappendFrame in interface MessageAppenderpayload - the frame payload to append.isLast - flag indicating if this is the last part of the message or not.java.io.IOException - if unable to append the frame payloadpublic void messageComplete()
MessageAppenderAny cleanup or final actions should be taken here.
messageComplete in interface MessageAppenderCopyright © 1995–2018 Webtide. All rights reserved.