Class UdpChannelFactory
- java.lang.Object
-
- org.apache.plc4x.java.spi.connection.NettyChannelFactory
-
- org.apache.plc4x.java.transport.udp.UdpChannelFactory
-
- All Implemented Interfaces:
HasConfiguration<UdpTransportConfiguration>,ChannelFactory
public class UdpChannelFactory extends NettyChannelFactory implements HasConfiguration<UdpTransportConfiguration>
-
-
Constructor Summary
Constructors Constructor Description UdpChannelFactory(SocketAddress remoteAddress)UdpChannelFactory(SocketAddress localAddress, SocketAddress remoteAddress)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigureBootstrap(io.netty.bootstrap.Bootstrap bootstrap)Class<? extends io.netty.channel.Channel>getChannel()voidinitializePipeline(io.netty.channel.ChannelPipeline pipeline)booleanisPassive()voidsetConfiguration(UdpTransportConfiguration configuration)-
Methods inherited from class org.apache.plc4x.java.spi.connection.NettyChannelFactory
closeEventLoopForChannel, createBootstrap, createChannel, getEventLoopGroup
-
-
-
-
Constructor Detail
-
UdpChannelFactory
public UdpChannelFactory(SocketAddress remoteAddress)
-
UdpChannelFactory
public UdpChannelFactory(SocketAddress localAddress, SocketAddress remoteAddress)
-
-
Method Detail
-
setConfiguration
public void setConfiguration(UdpTransportConfiguration configuration)
- Specified by:
setConfigurationin interfaceHasConfiguration<UdpTransportConfiguration>
-
getChannel
public Class<? extends io.netty.channel.Channel> getChannel()
- Specified by:
getChannelin classNettyChannelFactory
-
isPassive
public boolean isPassive()
- Specified by:
isPassivein interfaceChannelFactory
-
configureBootstrap
public void configureBootstrap(io.netty.bootstrap.Bootstrap bootstrap)
- Specified by:
configureBootstrapin classNettyChannelFactory
-
initializePipeline
public void initializePipeline(io.netty.channel.ChannelPipeline pipeline)
- Specified by:
initializePipelinein interfaceChannelFactory
-
-