Interface ChannelDecoder

All Known Subinterfaces:
ChannelCodec

public interface ChannelDecoder
Decodes a Message from an inbound ByteBuffer.
  • Method Summary

    Modifier and Type
    Method
    Description
    Decodes a message from the supplied inbound ByteBuffer.
  • Method Details

    • decodeInbound

      Message decodeInbound(CodecContext context, ByteBuffer inbound) throws Exception
      Decodes a message from the supplied inbound ByteBuffer.
      Parameters:
      context - the context of the decoder.
      inbound - the inbound buffer to be decoded.
      Returns:
      a message or null if the buffer is missing data.
      Throws:
      NullPointerException - if an argument is null.
      Exception - if another error occurs.