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

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

Introduction

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

Prototype

long MIN_CONCURRENT_STREAMS

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

Click Source Link

Usage

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

License:Open Source License

/**
 * Set the {@literal SETTINGS_MAX_CONCURRENT_STREAMS} HTTP/2 setting
 *
 * @param maxConcurrentStreams the new value
 * @return a reference to this, so the API can be used fluently
 *///  w  ww.  j  a v  a2s  .  c  om
public Http2Settings setMaxConcurrentStreams(long maxConcurrentStreams) {
    Arguments.require(maxConcurrentStreams >= Http2CodecUtil.MIN_CONCURRENT_STREAMS,
            "maxConcurrentStreams must be >= " + Http2CodecUtil.MIN_CONCURRENT_STREAMS);
    Arguments.require(maxConcurrentStreams <= Http2CodecUtil.MAX_CONCURRENT_STREAMS,
            "maxConcurrentStreams must be < " + Http2CodecUtil.MAX_CONCURRENT_STREAMS);
    this.maxConcurrentStreams = maxConcurrentStreams;
    return this;
}