public class ModbusRtuDecoder extends TimedEndDecoder
nextFilter
Constructor and Description |
---|
ModbusRtuDecoder(ScheduledExecutorService scheduler,
long interFrameDelay,
TimeUnit timeUnit) |
Modifier and Type | Method and Description |
---|---|
void |
decode(IoSession session,
IoBuffer in,
ProtocolDecoderOutput out)
Decodes binary or protocol-specific content into higher-level message objects.
|
void |
timeout(IoSession session,
ProtocolDecoderOutput out)
Handle the timeout situation
|
clear, dispose, finishDecode, setNextFilter, tick, tick
public ModbusRtuDecoder(ScheduledExecutorService scheduler, long interFrameDelay, TimeUnit timeUnit)
public void timeout(IoSession session, ProtocolDecoderOutput out) throws Exception
TimedEndDecoder
timeout
in class TimedEndDecoder
session
- the session for which the timeout occurredout
- the outputException
public void decode(IoSession session, IoBuffer in, ProtocolDecoderOutput out) throws Exception
ProtocolDecoder
ProtocolDecoder.decode(IoSession, IoBuffer, ProtocolDecoderOutput)
method with read data, and then the decoder implementation puts decoded
messages into ProtocolDecoderOutput
.Exception
- if the read data violated protocol specification