public interface MessageBuffer
Modifier and Type | Method and Description |
---|---|
boolean |
addBytes(java.nio.ByteBuffer buffer)
Adds byte data to the message buffer.
|
boolean |
hasMessages()
Returns true if there is a message waiting in the buffer.
|
Message |
pollMessage()
Returns the next message in the buffer or null if there are no more
messages in the buffer.
|
Message pollMessage()
boolean hasMessages()
boolean addBytes(java.nio.ByteBuffer buffer)