Removed deprecated constructor in AbstractDispatcher
[bgpcep.git] / framework / src / main / java / org / opendaylight / protocol / framework / AbstractDispatcher.java
index c040170e1b3dbbcc50c7341139c37ecdf63389d6..c4e7d31f7476cd6c5f7470ffa866e8e337c64045 100644 (file)
@@ -31,7 +31,7 @@ import java.net.InetSocketAddress;
  * Dispatcher class for creating servers and clients. The idea is to first create servers and clients and the run the
  * start method that will handle sockets in different thread.
  */
-public abstract class AbstractDispatcher<S extends ProtocolSession<?>, L extends SessionListener<?, ?, ?>> implements Closeable {
+public abstract class AbstractDispatcher<S extends ProtocolSession<?>, L extends SessionListener<?, ?, ?>> {
 
        protected interface PipelineInitializer<S extends ProtocolSession<?>> {
                /**
@@ -51,17 +51,6 @@ public abstract class AbstractDispatcher<S extends ProtocolSession<?>, L extends
 
        private final EventLoopGroup workerGroup;
 
-
-       /**
-        * Internally creates new instances of NioEventLoopGroup, might deplete system resources and result in Too many open files exception.
-        *
-        * @deprecated use {@link AbstractDispatcher#AbstractDispatcher(io.netty.channel.EventLoopGroup, io.netty.channel.EventLoopGroup)} instead.
-        */
-       @Deprecated
-       protected AbstractDispatcher() {
-               this(new NioEventLoopGroup(),new NioEventLoopGroup());
-       }
-
        protected AbstractDispatcher(EventLoopGroup bossGroup, EventLoopGroup workerGroup) {
                this.bossGroup = bossGroup;
                this.workerGroup = workerGroup;
@@ -141,12 +130,4 @@ public abstract class AbstractDispatcher<S extends ProtocolSession<?>, L extends
 
        }
 
-       @Override
-       public void close() {
-               try {
-                       this.workerGroup.shutdownGracefully();
-               } finally {
-                       this.bossGroup.shutdownGracefully();
-               }
-       }
 }