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 ProtocolDecoderOutputmessage - the decoded messagepublic void flush(IoFilter.NextFilter nextFilter, IoSession session)
ProtocolDecoderOutput.write(Object) to
the next filter.flush in interface ProtocolDecoderOutputnextFilter - the next Filtersession - The current SessionCopyright © 2004–2024 Apache MINA Project. All rights reserved.