public interface MessageParser
| 限定符和类型 | 方法和说明 |
|---|---|
IncomingMessage |
parseMessage(ByteQueue queue)
Attempt to parse a message out of the queue.
|
IncomingMessage parseMessage(ByteQueue queue) throws Exception
queue - the queue from which to access data for the creation of the messageException - if the data in the queue is sufficient to construct a message, but the message data is invalid, this
method must throw an exception, or it will keep getting the same data.Copyright © 2018. All rights reserved.