Class SimpleProtocolDecoderOutput
java.lang.Object
org.apache.mina.filter.codec.support.SimpleProtocolDecoderOutput
- All Implemented Interfaces:
ProtocolDecoderOutput
A
ProtocolDecoderOutput
based on queue.-
Constructor Summary
ConstructorsConstructorDescriptionSimpleProtocolDecoderOutput
(IoSession session, IoFilter.NextFilter nextFilter) -
Method Summary
Modifier and TypeMethodDescriptionvoid
flush()
Flushes all messages you wrote viaProtocolDecoderOutput.write(Object)
to the next filter.void
Callback forProtocolDecoder
to generate decoded messages.
-
Constructor Details
-
SimpleProtocolDecoderOutput
-
-
Method Details
-
write
Description copied from interface:ProtocolDecoderOutput
Callback forProtocolDecoder
to generate decoded messages.ProtocolDecoder
must callProtocolDecoderOutput.write(Object)
for each decoded messages.- Specified by:
write
in interfaceProtocolDecoderOutput
- Parameters:
message
- the decoded message
-
flush
public void flush()Description copied from interface:ProtocolDecoderOutput
Flushes all messages you wrote viaProtocolDecoderOutput.write(Object)
to the next filter.- Specified by:
flush
in interfaceProtocolDecoderOutput
-