public class ClientMessageChannelInboundHandler extends ChannelInboundHandlerWithCounters
ClientMessages from byte chunks. Fragmented messages are merged into single messages before processed.| Modifier and Type | Class and Description | 
|---|---|
static interface  | 
ClientMessageChannelInboundHandler.MessageHandler
Implementers will be responsible to delegate the constructed message 
 | 
normalPacketsRead, priorityPacketsRead| Constructor and Description | 
|---|
ClientMessageChannelInboundHandler(ClientMessageChannelInboundHandler.MessageHandler messageHandler)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
onRead(ByteBuffer src)
A callback to indicate that data is available in the src ByteBuffer to be processed. 
 | 
setNormalPacketsRead, setPriorityPacketsReadpublic ClientMessageChannelInboundHandler(ClientMessageChannelInboundHandler.MessageHandler messageHandler)
public void onRead(ByteBuffer src) throws Exception
ChannelInboundHandlersrc - the ByteBuffer containing the data to read. The ByteBuffer is already in reading mode and when completed,
            should not be converted to write-mode using clear/compact.Exception - if something fails while reading data from the ByteBuffer or processing the data (e.g. when a Packet
                   fails to get processed). When an exception is thrown, the ChannelErrorHandler is called.Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.