Remove AbstractNetconfDispatcher.customizeBootstrap()
[netconf.git] / netconf / netconf-netty-util / src / main / java / org / opendaylight / netconf / nettyutil / AbstractNetconfDispatcher.java
index 79d6ca3f2d939656c28802ebf5997737b8512248..dbe6d830e1ab517b28fa98409055d8cac998f08c 100644 (file)
@@ -115,7 +115,6 @@ public abstract class AbstractNetconfDispatcher<S extends NetconfSession, L exte
             b.childOption(ChannelOption.TCP_NODELAY , true);
         }
         b.childOption(ChannelOption.ALLOCATOR, PooledByteBufAllocator.DEFAULT);
-        customizeBootstrap(b);
 
         if (b.group() == null) {
             b.group(bossGroup, workerGroup);
@@ -133,28 +132,6 @@ public abstract class AbstractNetconfDispatcher<S extends NetconfSession, L exte
         return f;
     }
 
-    /**
-     * Customize a server bootstrap before the server is created. This allows
-     * subclasses to assign non-default server options before the server is
-     * created.
-     *
-     * @param bootstrap Server bootstrap
-     */
-    protected void customizeBootstrap(final ServerBootstrap bootstrap) {
-        // The default is a no-op
-    }
-
-    /**
-     * Customize a client bootstrap before the connection is attempted. This
-     * allows subclasses to assign non-default options before the client is
-     * created.
-     *
-     * @param bootstrap Client bootstrap
-     */
-    protected void customizeBootstrap(final Bootstrap bootstrap) {
-        // The default is a no-op
-    }
-
     /**
      * Creates a client.
      *
@@ -176,7 +153,6 @@ public abstract class AbstractNetconfDispatcher<S extends NetconfSession, L exte
                     }
                 });
 
-        customizeBootstrap(b);
         setWorkerGroup(b);
         setChannelFactory(b);
 
@@ -225,7 +201,6 @@ public abstract class AbstractNetconfDispatcher<S extends NetconfSession, L exte
 
         b.option(ChannelOption.SO_KEEPALIVE, true);
 
-        customizeBootstrap(b);
         setWorkerGroup(b);
         setChannelFactory(b);