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
,java.io.Closeable
,java.lang.AutoCloseable
final class Http2EmptyDataFrameConnectionDecoder extends DecoratingHttp2ConnectionDecoder
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 Modifier and Type Field Description private int
maxConsecutiveEmptyFrames
-
Constructor Summary
Constructors Constructor Description Http2EmptyDataFrameConnectionDecoder(Http2ConnectionDecoder delegate, int maxConsecutiveEmptyFrames)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Http2FrameListener
frameListener()
Get 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
frameListener0()
-
Methods inherited from class io.netty.handler.codec.http2.DecoratingHttp2ConnectionDecoder
close, connection, decodeFrame, flowController, lifecycleManager, localSettings, prefaceReceived
-
-
-
-
Constructor Detail
-
Http2EmptyDataFrameConnectionDecoder
Http2EmptyDataFrameConnectionDecoder(Http2ConnectionDecoder delegate, int maxConsecutiveEmptyFrames)
-
-
Method Detail
-
frameListener
public void frameListener(Http2FrameListener listener)
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
public Http2FrameListener 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()
-
-