Interface ChannelEncoder
- All Known Subinterfaces:
ChannelCodec
public interface ChannelEncoder
Encodes an outbound
Message into a ByteBuffer.-
Method Summary
Modifier and TypeMethodDescriptionencodeOutbound(CodecContext context, Message outbound) Encodes the supplied outbound message into aByteBuffer.
-
Method Details
-
encodeOutbound
Encodes the supplied outbound message into aByteBuffer.- Parameters:
context- the context of the encoder.outbound- the outbound message to be encoded.- Returns:
- a
ByteBufferwith the encoded outbound message. - Throws:
NullPointerException- if an argument isnull.Exception- if another error occurs.
-