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

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

Introduction

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

Prototype

public DefaultHttp2LocalFlowController(Http2Connection connection) 

Source Link

Usage

From source file:io.grpc.netty.FixedHttp2ConnectionDecoder.java

License:Apache License

public FixedHttp2ConnectionDecoder(Http2Connection connection, Http2ConnectionEncoder encoder,
        Http2FrameReader frameReader, Http2PromisedRequestVerifier requestVerifier) {
    this.connection = checkNotNull(connection, "connection");
    this.frameReader = checkNotNull(frameReader, "frameReader");
    this.encoder = checkNotNull(encoder, "encoder");
    this.requestVerifier = checkNotNull(requestVerifier, "requestVerifier");
    if (connection.local().flowController() == null) {
        connection.local().flowController(new DefaultHttp2LocalFlowController(connection));
    }//from   ww w . j a va2  s  .c  om
    connection.local().flowController().frameWriter(encoder.frameWriter());
}