Example usage for io.vertx.core.http HttpServerOptions DEFAULT_INITIAL_SETTINGS_MAX_CONCURRENT_STREAMS

List of usage examples for io.vertx.core.http HttpServerOptions DEFAULT_INITIAL_SETTINGS_MAX_CONCURRENT_STREAMS

Introduction

In this page you can find the example usage for io.vertx.core.http HttpServerOptions DEFAULT_INITIAL_SETTINGS_MAX_CONCURRENT_STREAMS.

Prototype

long DEFAULT_INITIAL_SETTINGS_MAX_CONCURRENT_STREAMS

To view the source code for io.vertx.core.http HttpServerOptions DEFAULT_INITIAL_SETTINGS_MAX_CONCURRENT_STREAMS.

Click Source Link

Document

The default initial settings max concurrent stream for an HTTP/2 server = 100

Usage

From source file:org.apache.servicecomb.transport.rest.vertx.TransportConfig.java

License:Apache License

public static long getMaxConcurrentStreams() {
    return DynamicPropertyFactory.getInstance()
            .getLongProperty("servicecomb.rest.server.http2.concurrentStreams",
                    HttpServerOptions.DEFAULT_INITIAL_SETTINGS_MAX_CONCURRENT_STREAMS)
            .get();/*w  w w  .  j a  v  a2  s .c om*/
}