|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ProtocolEncoderOutput
Callback for ProtocolEncoder to generate encoded ByteBuffers.
ProtocolEncoder must call write(ByteBuffer) for each decoded
messages.
| Method Summary | |
|---|---|
void |
mergeAll()
Merges all buffers you wrote via write(ByteBuffer) into
one ByteBuffer and replaces the old fragmented ones with it. |
void |
write(ByteBuffer buf)
Callback for ProtocolEncoder to generate encoded
ByteBuffers. |
| Method Detail |
|---|
void write(ByteBuffer buf)
ProtocolEncoder to generate encoded
ByteBuffers. ProtocolEncoder must call
write(ByteBuffer) for each decoded messages.
buf - the buffer which contains encoded datavoid mergeAll()
write(ByteBuffer) into
one ByteBuffer and replaces the old fragmented ones with it.
This method is useful when you want to control the way MINA generates
network packets.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||