Class TestHttp2StreamChannel
java.lang.Object
io.netty.util.DefaultAttributeMap
io.netty.channel.AbstractChannel
io.netty.channel.embedded.EmbeddedChannel
org.apache.kafka.common.network.netty.TestHttp2StreamChannel
- All Implemented Interfaces:
io.netty.channel.Channel, io.netty.channel.ChannelOutboundInvoker, io.netty.handler.codec.http2.Http2StreamChannel, io.netty.util.AttributeMap, Comparable<io.netty.channel.Channel>
public class TestHttp2StreamChannel
extends io.netty.channel.embedded.EmbeddedChannel
implements io.netty.handler.codec.http2.Http2StreamChannel
An implementation of
Http2StreamChannel for testing that provides the same
functionality as EmbeddedChannel but also allows for custom HTTP/2 stream behaviours.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.Channel
io.netty.channel.Channel.Unsafe -
Constructor Summary
ConstructorsConstructorDescriptionTestHttp2StreamChannel(io.netty.channel.Channel parent, int streamId) TestHttp2StreamChannel(io.netty.channel.Channel parent, int streamId, boolean mockAddresses) -
Method Summary
Methods inherited from class io.netty.channel.embedded.EmbeddedChannel
advanceTimeBy, bind, bind, checkException, close, close, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, finish, finishAndReleaseAll, flush, flushInbound, flushOutbound, freezeTime, hasPendingTasks, inboundMessages, isActive, isOpen, lastInboundBuffer, lastOutboundBuffer, metadata, outboundMessages, read, readInbound, readOutbound, register, releaseInbound, releaseOutbound, runPendingTasks, runScheduledPendingTasks, unfreezeTime, unsafe, write, writeAndFlush, writeAndFlush, writeInbound, writeOneInbound, writeOneInbound, writeOneOutbound, writeOneOutbound, writeOutboundMethods inherited from class io.netty.channel.AbstractChannel
alloc, bytesBeforeUnwritable, bytesBeforeWritable, closeFuture, compareTo, equals, eventLoop, hashCode, id, isRegistered, isWritable, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, pipeline, toString, voidPromiseMethods inherited from class io.netty.util.DefaultAttributeMap
attr, hasAttrMethods inherited from interface io.netty.util.AttributeMap
attr, hasAttrMethods inherited from interface io.netty.channel.Channel
alloc, bytesBeforeUnwritable, bytesBeforeWritable, closeFuture, eventLoop, flush, id, isActive, isOpen, isRegistered, isWritable, metadata, pipeline, read, unsafeMethods inherited from interface io.netty.channel.ChannelOutboundInvoker
bind, bind, close, close, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, voidPromise, write, writeAndFlush, writeAndFlushMethods inherited from interface Comparable
compareTo
-
Constructor Details
-
TestHttp2StreamChannel
public TestHttp2StreamChannel(io.netty.channel.Channel parent, int streamId, boolean mockAddresses) -
TestHttp2StreamChannel
public TestHttp2StreamChannel(io.netty.channel.Channel parent, int streamId)
-
-
Method Details
-
remoteAddress
- Specified by:
remoteAddressin interfaceio.netty.channel.Channel- Overrides:
remoteAddressin classio.netty.channel.AbstractChannel
-
localAddress
- Specified by:
localAddressin interfaceio.netty.channel.Channel- Overrides:
localAddressin classio.netty.channel.AbstractChannel
-
config
public io.netty.channel.ChannelConfig config()- Specified by:
configin interfaceio.netty.channel.Channel- Overrides:
configin classio.netty.channel.embedded.EmbeddedChannel
-
setWriteInterceptor
-
write
- Specified by:
writein interfaceio.netty.channel.ChannelOutboundInvoker- Overrides:
writein classio.netty.channel.embedded.EmbeddedChannel
-
stream
public io.netty.handler.codec.http2.Http2FrameStream stream()- Specified by:
streamin interfaceio.netty.handler.codec.http2.Http2StreamChannel
-
parent
public io.netty.channel.Channel parent()- Specified by:
parentin interfaceio.netty.channel.Channel- Overrides:
parentin classio.netty.channel.AbstractChannel
-