Interface ChannelDecoder
- All Known Subinterfaces:
ChannelCodec
public interface ChannelDecoder
Decodes a
Message from an inbound ByteBuffer.-
Method Summary
Modifier and TypeMethodDescriptiondecodeInbound(CodecContext context, ByteBuffer inbound) Decodes a message from the supplied inboundByteBuffer.
-
Method Details
-
decodeInbound
Decodes a message from the supplied inboundByteBuffer.- Parameters:
context- the context of the decoder.inbound- the inbound buffer to be decoded.- Returns:
- a message or
nullif the buffer is missing data. - Throws:
NullPointerException- if an argument isnull.Exception- if another error occurs.
-