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;
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, // #
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.
*