Example usage for io.netty.handler.codec.http2 DefaultHttp2GoAwayFrame DefaultHttp2GoAwayFrame

List of usage examples for io.netty.handler.codec.http2 DefaultHttp2GoAwayFrame DefaultHttp2GoAwayFrame

Introduction

In this page you can find the example usage for io.netty.handler.codec.http2 DefaultHttp2GoAwayFrame DefaultHttp2GoAwayFrame.

Prototype

public DefaultHttp2GoAwayFrame(long errorCode) 

Source Link

Document

Equivalent to new DefaultHttp2GoAwayFrame(content, Unpooled.EMPTY_BUFFER) .

Usage

From source file:org.wso2.carbon.inbound.endpoint.protocol.http2.Http2FrameListenAdapter.java

License:Open Source License

@Override
public void onGoAwayRead(ChannelHandlerContext ctx, int lastStreamId, long errorCode, ByteBuf debugData)
        throws Http2Exception {
    ctx.fireChannelRead(/*ww  w. j a v a  2 s  . c o m*/
            new DefaultHttp2GoAwayFrame(errorCode).replace(debugData).setExtraStreamIds(lastStreamId));
}