Convert netconf-client to OSGi DS
[netconf.git] / netconf / netconf-netty-util / src / main / java / org / opendaylight / netconf / nettyutil / AbstractNetconfDispatcher.java
index bbddb1d0c5afaa94364d59881094561a4c83eae4..d5ce7bfee5e0ff1cac556a11c8585a3c85b06731 100644 (file)
@@ -27,7 +27,6 @@ import io.netty.util.concurrent.EventExecutor;
 import io.netty.util.concurrent.Future;
 import io.netty.util.concurrent.GlobalEventExecutor;
 import io.netty.util.concurrent.Promise;
-import java.io.Closeable;
 import java.net.InetSocketAddress;
 import java.net.SocketAddress;
 import org.opendaylight.netconf.api.NetconfSession;
@@ -40,9 +39,7 @@ import org.slf4j.LoggerFactory;
  * start method that will handle sockets in different thread.
  */
 @Deprecated
-public abstract class AbstractNetconfDispatcher<S extends NetconfSession, L extends NetconfSessionListener<? super S>>
-        implements Closeable {
-
+public abstract class AbstractNetconfDispatcher<S extends NetconfSession, L extends NetconfSessionListener<? super S>> {
     protected interface ChannelPipelineInitializer<C extends Channel, S extends NetconfSession> {
         /**
          * Initializes channel by specifying the handlers in its pipeline. Handlers are protocol specific, therefore
@@ -59,7 +56,6 @@ public abstract class AbstractNetconfDispatcher<S extends NetconfSession, L exte
 
     }
 
-
     private static final Logger LOG = LoggerFactory.getLogger(AbstractNetconfDispatcher.class);
 
     private final EventLoopGroup bossGroup;
@@ -252,9 +248,4 @@ public abstract class AbstractNetconfDispatcher<S extends NetconfSession, L exte
             bootstrap.group(workerGroup);
         }
     }
-
-    @Deprecated
-    @Override
-    public void close() {
-    }
 }