use of io.vertx.core.http.GoAway in project vert.x by eclipse.
the class Http2ConnectionBase method onGoAwayReceived.
synchronized void onGoAwayReceived(int lastStreamId, long errorCode, ByteBuf debugData) {
Handler<GoAway> handler = goAwayHandler;
if (handler != null) {
Buffer buffer = Buffer.buffer(debugData);
context.executeFromIO(() -> {
handler.handle(new GoAway().setErrorCode(errorCode).setLastStreamId(lastStreamId).setDebugData(buffer));
});
}
checkShutdownHandler();
}