public abstract class AbstractProtocolDecoderOutput extends Object implements ProtocolDecoderOutput
ProtocolDecoderOutput
based on queue.Modifier and Type | Field and Description |
---|---|
protected Queue<Object> |
messageQueue
The queue where decoded messages are stored
|
Constructor and Description |
---|
AbstractProtocolDecoderOutput()
Creates a new instance of a AbstractProtocolDecoderOutput
|
Modifier and Type | Method and Description |
---|---|
void |
flush(IoFilter.NextFilter nextFilter,
IoSession session)
Flushes all messages you wrote via
ProtocolDecoderOutput.write(Object) to
the next filter. |
void |
write(Object message)
Callback for
ProtocolDecoder to generate decoded messages. |
public AbstractProtocolDecoderOutput()
public void write(Object message)
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(IoFilter.NextFilter nextFilter, IoSession session)
ProtocolDecoderOutput.write(Object)
to
the next filter.flush
in interface ProtocolDecoderOutput
nextFilter
- the next Filtersession
- The current SessionCopyright © 2004–2022 Apache MINA Project. All rights reserved.