Package org.apache.kafka.common.network.netty
package org.apache.kafka.common.network.netty
-
ClassDescriptionValidates the sendResponse path when no Netty writes occur in the current iteration and lastWriteFuture() returns a completed future.Tests for the bounded-request size cap in
ByteBufReceive: oversized requests on configured api keys are rejected after the 4-byte api header is read, before the (potentially large) payload is retained into the composite buffer.Test class to test ByteBufReceive backing multiple buffers.Test class to test ByteBufReceive backed by a single buffer.Tests for the control message wire format:ByteBufReceive's negative-size handling,ControlMessage's zero-copy composite buffer construction, and the versioned capability handshake onK2PStreamMetadata(edge → broker) andBrokerToEdgeMetadata(broker → edge).Simple test class to validateDirectSendTransport.DirectSendmethods.Echo stream handler is same for all type of transports, so it has a package scope so that other Netty servers can use it.Test class for HTTP/2 handler initializer sets up the handlers as expected.HTTP/2 echo server to test the HTTP/2 client implementation.A simple HTTP/2 server that reverses the connected streams.Test for HTTP/2 reverse streams using NettyTest class to test methods in theNettyHttp2Selector.StreamChannelclass.Test class to verify that NettyHttp2Selector can be used to create Kafka clients.Test class to test the only netty handler we have in the stream channel.Integration-style test that creates a real HTTP/2 stream over an EmbeddedChannel and validates the streamId before and after sending HTTP/2 headers.Test class for HTTP/2 connection methods.Test class to make sure that the stream events are delivered correctly to theNettyStream.StreamHandlerhandler that was passed in to theNettyHttp2Streamclass.Test class to test ReadableByteBuf backing multiple buffers.Test class to testReadableByteBufbacking multiple buffers with data split across them.Test class to test ReadableByteBuf backing only a single buffer.A simple StreamHandler that reverses the connected streams.An implementation ofHttp2StreamChannelfor testing that provides the same functionality asEmbeddedChannelbut also allows for custom HTTP/2 stream behaviours.A simple Netty client for testing purposes.A plugin for creating aTestNettyHttp2Selectorthat can handle HTTP/2 streams.Test implementation ofNettyHttp2Selectorthat overrides the stream creation headers to include a custom tenant ID and client information.Listener to process the data received from the server.Test class to test methods inUtilsclass.