public abstract class AbstractProtocolEncoderOutput extends Object implements ProtocolEncoderOutput
ProtocolEncoderOutput based on queue.| Constructor and Description |
|---|
AbstractProtocolEncoderOutput() |
| Modifier and Type | Method and Description |
|---|---|
Queue<Object> |
getMessageQueue() |
void |
mergeAll()
Merges all buffers you wrote via
ProtocolEncoderOutput.write(Object) into
one IoBuffer and replaces the old fragmented ones with it. |
void |
write(Object encodedMessage)
Callback for
ProtocolEncoder to generate an encoded message such
as an IoBuffer. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitflushpublic void write(Object encodedMessage)
ProtocolEncoderOutputProtocolEncoder to generate an encoded message such
as an IoBuffer. ProtocolEncoder must call
ProtocolEncoderOutput.write(Object) for each encoded message.write in interface ProtocolEncoderOutputencodedMessage - the encoded message, typically an IoBuffer
or a FileRegion.public void mergeAll()
ProtocolEncoderOutputProtocolEncoderOutput.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. Please note that this method only works when you
called ProtocolEncoderOutput.write(Object) method with only IoBuffers.mergeAll in interface ProtocolEncoderOutput