public class GreedyMessageBuffer extends java.lang.Object implements MessageBuffer
| Constructor and Description | 
|---|
GreedyMessageBuffer(MessageProtocol protocol)  | 
| 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. 
 | 
public GreedyMessageBuffer(MessageProtocol protocol)
public Message pollMessage()
pollMessage in interface MessageBufferpublic boolean hasMessages()
hasMessages in interface MessageBufferpublic boolean addBytes(java.nio.ByteBuffer buffer)
addBytes in interface MessageBuffer