public interface MessageEncoder
getMessageTypes()
.Modifier and Type | Method | Description |
---|---|---|
void |
encode(IoSession session,
java.lang.Object message,
ProtocolEncoderOutput out) |
Encodes higher-level message objects into binary or protocol-specific data.
|
java.util.Set<java.lang.Class<?>> |
getMessageTypes() |
Returns the set of message classes this encoder can encode.
|
java.util.Set<java.lang.Class<?>> getMessageTypes()
void encode(IoSession session, java.lang.Object message, ProtocolEncoderOutput out) throws java.lang.Exception
encode(IoSession, Object, ProtocolEncoderOutput)
method with message which is popped from the session write queue, and then
the encoder implementation puts encoded ByteBuffer
s into
ProtocolEncoderOutput
.java.lang.Exception
- if the message violated protocol specification