Bug 3230 - Attempt to use Epoll native transport if available
[openflowjava.git] / openflow-protocol-impl / src / main / java / org / opendaylight / openflowjava / protocol / impl / core / UdpChannelInitializer.java
index ba1650e53565d6628957444ace04d5b6e230a572..ccb8b06c7c95e8dc1fba73a15770135f5724477a 100644 (file)
@@ -8,16 +8,16 @@
 
 package org.opendaylight.openflowjava.protocol.impl.core;
 
-import io.netty.channel.socket.nio.NioDatagramChannel;
+import io.netty.channel.socket.DatagramChannel;
 
 /**
  * @author michal.polkorab
  *
  */
-public class UdpChannelInitializer extends ProtocolChannelInitializer<NioDatagramChannel> {
+public class UdpChannelInitializer extends ProtocolChannelInitializer<DatagramChannel> {
 
     @Override
-    protected void initChannel(NioDatagramChannel ch) throws Exception {
+    protected void initChannel(DatagramChannel ch) throws Exception {
         ch.pipeline().addLast(PipelineHandlers.OF_DATAGRAMPACKET_HANDLER.name(),
                 new OFDatagramPacketHandler(getSwitchConnectionHandler()));
         OFDatagramPacketDecoder ofDatagramPacketDecoder = new OFDatagramPacketDecoder();