Interface MessageEncoder<T>

Type Parameters:
T - The message type

public interface MessageEncoder<T>
Encodes a certain type of messages.

We didn't provide any dispose method for MessageEncoder because it can give you performance penalty in case you have a lot of message types to handle.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    encode(IoSession session, T message, ProtocolEncoderOutput out)
    Encodes higher-level message objects into binary or protocol-specific data.