Class UdpSocketChannelFactory

  • All Implemented Interfaces:
    org.apache.plc4x.java.base.connection.ChannelFactory

    public class UdpSocketChannelFactory
    extends Object
    implements org.apache.plc4x.java.base.connection.ChannelFactory
    • Constructor Detail

      • UdpSocketChannelFactory

        public UdpSocketChannelFactory​(InetAddress address,
                                       int port)
    • Method Detail

      • createChannel

        public io.netty.channel.Channel createChannel​(io.netty.channel.ChannelHandler channelHandler)
                                               throws org.apache.plc4x.java.api.exceptions.PlcConnectionException
        Specified by:
        createChannel in interface org.apache.plc4x.java.base.connection.ChannelFactory
        Throws:
        org.apache.plc4x.java.api.exceptions.PlcConnectionException
      • ping

        public void ping()
                  throws org.apache.plc4x.java.api.exceptions.PlcException
        Specified by:
        ping in interface org.apache.plc4x.java.base.connection.ChannelFactory
        Throws:
        org.apache.plc4x.java.api.exceptions.PlcException
      • getPort

        public int getPort()