Require maximum chunk size to be specified
[netconf.git] / netconf / netconf-netty-util / src / main / java / org / opendaylight / netconf / nettyutil / handler / NetconfChunkAggregator.java
index 49e6a89dfd71c867f59da0087c782983d23b98f8..5e91619c5c6191329d8863d700cd1e9685e45993 100644 (file)
@@ -16,7 +16,6 @@ import io.netty.channel.ChannelHandlerContext;
 import io.netty.handler.codec.ByteToMessageDecoder;
 import java.util.List;
 import org.checkerframework.checker.index.qual.NonNegative;
-import org.opendaylight.netconf.nettyutil.AbstractNetconfSessionNegotiator;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -27,10 +26,6 @@ public class NetconfChunkAggregator extends ByteToMessageDecoder {
     private static final String GOT_PARAM_WHILE_WAITING_FOR_PARAM_PARAM_PARAM =
         "Got byte {} while waiting for {}-{}-{}";
 
-    @Deprecated(since = "4.0.1", forRemoval = true)
-    public static final @NonNegative int DEFAULT_MAXIMUM_CHUNK_SIZE =
-        AbstractNetconfSessionNegotiator.DEFAULT_MAXIMUM_INCOMING_CHUNK_SIZE;
-
     private enum State {
         HEADER_ONE, // \n
         HEADER_TWO, // #
@@ -48,16 +43,6 @@ public class NetconfChunkAggregator extends ByteToMessageDecoder {
     private long chunkSize;
     private CompositeByteBuf chunk;
 
-    /**
-     * Construct an instance with maximum chunk size set to {@link #DEFAULT_MAXIMUM_CHUNK_SIZE}.
-     *
-     * @deprecated Prefer {@link #NetconfChunkAggregator(int)} for fine-grained control.
-     */
-    @Deprecated(since = "4.0.1", forRemoval = true)
-    public NetconfChunkAggregator() {
-        this(DEFAULT_MAXIMUM_CHUNK_SIZE);
-    }
-
     /**
      * Construct an instance with specified maximum chunk size.
      *