|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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.
DemuxingProtocolEncoder,
MessageEncoderFactory| Method Summary | |
|---|---|
void |
encode(IoSession session,
T message,
ProtocolEncoderOutput out)
Encodes higher-level message objects into binary or protocol-specific data. |
| Method Detail |
|---|
void encode(IoSession session,
T message,
ProtocolEncoderOutput out)
throws Exception
encode(IoSession, Object, ProtocolEncoderOutput)
method with message which is popped from the session write queue, and then
the encoder implementation puts encoded IoBuffers into
ProtocolEncoderOutput.
Exception - if the message violated protocol specification
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||