Class NettyHttp2ReverseServer

java.lang.Object
org.apache.kafka.common.network.netty.NettyHttp2ReverseServer

public class NettyHttp2ReverseServer extends Object
A simple HTTP/2 server that reverses the connected streams. After the first message is received, the stream is registered to the Selector. Requests will be sent back to the client on the same stream.
  • Constructor Details

    • NettyHttp2ReverseServer

      public NettyHttp2ReverseServer()
  • Method Details

    • stop

      public void stop()
      Stop all the connections and wait for them to close before returning.
    • selector

      public org.apache.kafka.common.network.netty.NettyHttp2Selector selector()
    • activeStreamIds

      public List<String> activeStreamIds()
    • address

      public InetSocketAddress address()
      Return the address on which the server is listening.