Callback for
ProtocolEncoder to generate encoded messages such as
IoBuffer s.
ProtocolEncoder must call
ProtocolEncoderOutput.write(Object) for each encoded message.
author: The Apache MINA Project (dev@mina.apache.org) version: $Rev: 607166 $, $Date: 2007-12-27 20:43:04 -0700 (Thu, 27 Dec 2007) $
mergeAll() Merges all buffers you wrote via
ProtocolEncoderOutput.write(Object) into
one
IoBuffer and replaces the old fragmented ones with it.
This method is useful when you want to control the way MINA generates
network packets.
Flushes all buffers you wrote via
ProtocolEncoderOutput.write(Object) to
the session. This operation is asynchronous; please wait for
the returned
WriteFuture if you want to wait for
the buffers flushed.
null if there is nothing to flush at all.