Class SerialChannelHandler.SerialPortHandler
- java.lang.Object
-
- org.apache.plc4x.java.transport.serial.SerialChannelHandler
-
- org.apache.plc4x.java.transport.serial.SerialChannelHandler.SerialPortHandler
-
- Enclosing class:
- SerialChannelHandler
public static class SerialChannelHandler.SerialPortHandler extends SerialChannelHandler
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.plc4x.java.transport.serial.SerialChannelHandler
SerialChannelHandler.SerialPortHandler
-
-
Constructor Summary
Constructors Constructor Description SerialPortHandler(SocketAddress address, SerialChannelConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()StringgetIdentifier()booleanopen()intread(io.netty.buffer.ByteBuf buf)voidregisterSelectionKey(org.apache.plc4x.java.transport.serial.SerialSelectionKey selectionKey)intwrite(io.netty.buffer.ByteBuf buf)
-
-
-
Constructor Detail
-
SerialPortHandler
public SerialPortHandler(SocketAddress address, SerialChannelConfig config)
-
-
Method Detail
-
open
public boolean open()
-
getIdentifier
public String getIdentifier()
-
registerSelectionKey
public void registerSelectionKey(org.apache.plc4x.java.transport.serial.SerialSelectionKey selectionKey)
-
close
public void close()
- Specified by:
closein classSerialChannelHandler
-
read
public int read(io.netty.buffer.ByteBuf buf)
- Specified by:
readin classSerialChannelHandler- Returns:
- Return the amoubnt of bytes written into the buffer
-
write
public int write(io.netty.buffer.ByteBuf buf)
- Specified by:
writein classSerialChannelHandler- Returns:
- Number of bytes written to wire
-
-