Example usage for io.netty.handler.codec.http2 Http2CodecUtil MIN_INITIAL_WINDOW_SIZE

List of usage examples for io.netty.handler.codec.http2 Http2CodecUtil MIN_INITIAL_WINDOW_SIZE

Introduction

In this page you can find the example usage for io.netty.handler.codec.http2 Http2CodecUtil MIN_INITIAL_WINDOW_SIZE.

Prototype

int MIN_INITIAL_WINDOW_SIZE

To view the source code for io.netty.handler.codec.http2 Http2CodecUtil MIN_INITIAL_WINDOW_SIZE.

Click Source Link

Usage

From source file:io.vertx.core.http.Http2Settings.java

License:Open Source License

/**
 * Set the {@literal SETTINGS_INITIAL_WINDOW_SIZE} HTTP/2 setting
 *
 * @param initialWindowSize the new value
 * @return a reference to this, so the API can be used fluently
 *///from  ww w  .  j ava  2 s.c  om
public Http2Settings setInitialWindowSize(int initialWindowSize) {
    Arguments.require(initialWindowSize >= Http2CodecUtil.MIN_INITIAL_WINDOW_SIZE,
            "initialWindowSize must be >= " + Http2CodecUtil.MIN_INITIAL_WINDOW_SIZE);
    this.initialWindowSize = initialWindowSize;
    return this;
}