public abstract class AbstractProtocolEncoderOutput extends Object implements ProtocolEncoderOutput
ProtocolEncoderOutput
based on queue.Modifier and Type | Field and Description |
---|---|
protected Queue<Object> |
messageQueue
The queue where the decoded messages are stored
|
Constructor and Description |
---|
AbstractProtocolEncoderOutput()
Creates an instance of AbstractProtocolEncoderOutput
|
Modifier and Type | Method and Description |
---|---|
void |
write(Object message)
Callback for
ProtocolEncoder to generate an encoded message such as
an IoBuffer . |
public AbstractProtocolEncoderOutput()
public void write(Object message)
ProtocolEncoder
to generate an encoded message such as
an IoBuffer
. ProtocolEncoder
must call ProtocolEncoderOutput.write(Object)
for each encoded message.write
in interface ProtocolEncoderOutput
message
- the encoded message, typically an IoBuffer
or a
FileRegion
.Copyright © 2004–2022 Apache MINA Project. All rights reserved.