Package io.netty.handler.codec.http2
Class Http2EmptyDataFrameConnectionDecoder
java.lang.Object
io.netty.handler.codec.http2.DecoratingHttp2ConnectionDecoder
io.netty.handler.codec.http2.Http2EmptyDataFrameConnectionDecoder
- All Implemented Interfaces:
Http2ConnectionDecoder
,Closeable
,AutoCloseable
Enforce a limit on the maximum number of consecutive empty DATA frames (without end_of_stream flag) that are allowed
before the connection will be closed.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHttp2EmptyDataFrameConnectionDecoder
(Http2ConnectionDecoder delegate, int maxConsecutiveEmptyFrames) -
Method Summary
Modifier and TypeMethodDescriptionGet theHttp2FrameListener
which will be notified when frames are decoded.void
frameListener
(Http2FrameListener listener) Set theHttp2FrameListener
which will be notified when frames are decoded.(package private) Http2FrameListener
Methods inherited from class io.netty.handler.codec.http2.DecoratingHttp2ConnectionDecoder
close, connection, decodeFrame, flowController, lifecycleManager, localSettings, prefaceReceived
-
Field Details
-
maxConsecutiveEmptyFrames
private final int maxConsecutiveEmptyFrames
-
-
Constructor Details
-
Http2EmptyDataFrameConnectionDecoder
Http2EmptyDataFrameConnectionDecoder(Http2ConnectionDecoder delegate, int maxConsecutiveEmptyFrames)
-
-
Method Details
-
frameListener
Description copied from interface:Http2ConnectionDecoder
Set theHttp2FrameListener
which will be notified when frames are decoded.This must be set before frames are decoded.
- Specified by:
frameListener
in interfaceHttp2ConnectionDecoder
- Overrides:
frameListener
in classDecoratingHttp2ConnectionDecoder
-
frameListener
Description copied from interface:Http2ConnectionDecoder
Get theHttp2FrameListener
which will be notified when frames are decoded.- Specified by:
frameListener
in interfaceHttp2ConnectionDecoder
- Overrides:
frameListener
in classDecoratingHttp2ConnectionDecoder
-
frameListener0
Http2FrameListener frameListener0()
-