public class ClientMessageDecoder extends ChannelInboundHandlerWithCounters
ClientMessage
s from byte chunks. Fragmented messages are merged into single messages before processed.normalPacketsRead, priorityPacketsRead
Constructor and Description |
---|
ClientMessageDecoder(Connection connection,
ClientMessageHandler 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, setPriorityPacketsRead
public ClientMessageDecoder(Connection connection, ClientMessageHandler messageHandler)
public void onRead(ByteBuffer src)
ChannelInboundHandler
src
- 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.Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.