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 theHttp2FrameListenerwhich will be notified when frames are decoded.voidframeListener(Http2FrameListener listener) Set theHttp2FrameListenerwhich will be notified when frames are decoded.(package private) Http2FrameListenerMethods 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:Http2ConnectionDecoderSet theHttp2FrameListenerwhich will be notified when frames are decoded.This must be set before frames are decoded.
- Specified by:
frameListenerin interfaceHttp2ConnectionDecoder- Overrides:
frameListenerin classDecoratingHttp2ConnectionDecoder
-
frameListener
Description copied from interface:Http2ConnectionDecoderGet theHttp2FrameListenerwhich will be notified when frames are decoded.- Specified by:
frameListenerin interfaceHttp2ConnectionDecoder- Overrides:
frameListenerin classDecoratingHttp2ConnectionDecoder
-
frameListener0
Http2FrameListener frameListener0()
-