Example usage for io.vertx.core.http HttpConnection updateSettings

List of usage examples for io.vertx.core.http HttpConnection updateSettings

Introduction

In this page you can find the example usage for io.vertx.core.http HttpConnection updateSettings.

Prototype

@Fluent
HttpConnection updateSettings(Http2Settings settings, Handler<AsyncResult<Void>> completionHandler);

Source Link

Document

Send to the remote endpoint an update of this endpoint settings

The completionHandler will be notified when the remote endpoint has acknowledged the settings.

Usage

From source file:examples.HTTP2Examples.java

License:Open Source License

public void example21(HttpConnection connection) {
    connection.updateSettings(new Http2Settings().setMaxConcurrentStreams(100), ar -> {
        if (ar.succeeded()) {
            System.out.println("The settings update has been acknowledged ");
        }/*from  w  ww .  j a  va 2 s  .c  om*/
    });
}