ProtocolDecoderOutput
public class SimpleProtocolDecoderOutput extends java.lang.Object implements ProtocolDecoderOutput
ProtocolDecoderOutput
based on queue.Constructor | Description |
---|---|
SimpleProtocolDecoderOutput(IoSession session,
IoFilter.NextFilter nextFilter) |
Modifier and Type | Method | Description |
---|---|---|
void |
flush() |
Flushes all messages you wrote via
ProtocolDecoderOutput.write(Object) to
the next filter. |
void |
write(java.lang.Object message) |
Callback for
ProtocolDecoder to generate decoded messages. |
public SimpleProtocolDecoderOutput(IoSession session, IoFilter.NextFilter nextFilter)
public void write(java.lang.Object message)
ProtocolDecoderOutput
ProtocolDecoder
to generate decoded messages.
ProtocolDecoder
must call ProtocolDecoderOutput.write(Object)
for each
decoded messages.write
in interface ProtocolDecoderOutput
message
- the decoded messagepublic void flush()
ProtocolDecoderOutput
ProtocolDecoderOutput.write(Object)
to
the next filter.flush
in interface ProtocolDecoderOutput