List of usage examples for io.vertx.core.http HttpConnection shutdownHandler
@Fluent HttpConnection shutdownHandler(@Nullable Handler<Void> handler);
From source file:examples.HTTP2Examples.java
License:Open Source License
public void example28(HttpConnection connection) { connection.goAway(0);/*w w w . j a va 2 s . c om*/ connection.shutdownHandler(v -> { // All streams are closed, close the connection connection.close(); }); }