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

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

Introduction

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

Prototype

@Fluent
HttpConnection goAwayHandler(@Nullable Handler<GoAway> handler);

Source Link

Document

Set an handler called when a GOAWAY frame is received.

Usage

From source file:examples.HTTP2Examples.java

License:Open Source License

public void example27(HttpConnection connection) {
    connection.goAwayHandler(goAway -> {
        System.out.println("Received a go away frame");
    });//from   w w w. jav a2s  .  c o  m
}