|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mina.protocol.SimpleProtocolEncoderOutput
public class SimpleProtocolEncoderOutput
A ProtocolEncoderOutput
based on queue.
Constructor Summary | |
---|---|
SimpleProtocolEncoderOutput()
|
Method Summary | |
---|---|
Queue |
getBufferQueue()
|
void |
mergeAll()
Merges all buffers you wrote via ProtocolEncoderOutput.write(ByteBuffer) into
one ByteBuffer and replaces the old fragmented ones with it. |
void |
write(ByteBuffer buf)
Callback for ProtocolEncoder to generate encoded
ByteBuffer s. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleProtocolEncoderOutput()
Method Detail |
---|
public Queue getBufferQueue()
public void write(ByteBuffer buf)
ProtocolEncoderOutput
ProtocolEncoder
to generate encoded
ByteBuffer
s. ProtocolEncoder
must call
ProtocolEncoderOutput.write(ByteBuffer)
for each decoded messages.
write
in interface ProtocolEncoderOutput
buf
- the buffer which contains encoded datapublic void mergeAll()
ProtocolEncoderOutput
ProtocolEncoderOutput.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.
mergeAll
in interface ProtocolEncoderOutput
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |