Interface ChannelEncoder

All Known Subinterfaces:
ChannelCodec

public interface ChannelEncoder
Encodes an outbound Message into a ByteBuffer.
  • Method Summary

    Modifier and Type
    Method
    Description
    encodeOutbound(CodecContext context, Message outbound)
    Encodes the supplied outbound message into a ByteBuffer.
  • Method Details

    • encodeOutbound

      ByteBuffer encodeOutbound(CodecContext context, Message outbound) throws Exception
      Encodes the supplied outbound message into a ByteBuffer.
      Parameters:
      context - the context of the encoder.
      outbound - the outbound message to be encoded.
      Returns:
      a ByteBuffer with the encoded outbound message.
      Throws:
      NullPointerException - if an argument is null.
      Exception - if another error occurs.