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, tickpublic ModbusRtuDecoder(ScheduledExecutorService scheduler, long interFrameDelay, TimeUnit timeUnit)
public void timeout(IoSession session, ProtocolDecoderOutput out) throws Exception
TimedEndDecodertimeout in class TimedEndDecodersession - the session for which the timeout occurredout - the outputExceptionpublic void decode(IoSession session, IoBuffer in, ProtocolDecoderOutput out) throws Exception
ProtocolDecoderProtocolDecoder.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