Class Http2MaxRstFrameDecoder
java.lang.Object
io.netty.handler.codec.http2.DecoratingHttp2ConnectionDecoder
io.netty.handler.codec.http2.Http2MaxRstFrameDecoder
- All Implemented Interfaces:
Http2ConnectionDecoder, Closeable, AutoCloseable
Enforce a limit on the maximum number of RST frames that are allowed per a window
before the connection will be closed with a GO_AWAY frame.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final int -
Constructor Summary
ConstructorsConstructorDescriptionHttp2MaxRstFrameDecoder(Http2ConnectionDecoder delegate, int maxRstFramesPerWindow, int secondsPerWindow) -
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 DecoratingHttp2ConnectionDecoder
close, connection, decodeFrame, flowController, lifecycleManager, localSettings, prefaceReceived
-
Field Details
-
maxRstFramesPerWindow
private final int maxRstFramesPerWindow -
secondsPerWindow
private final int secondsPerWindow
-
-
Constructor Details
-
Http2MaxRstFrameDecoder
Http2MaxRstFrameDecoder(Http2ConnectionDecoder delegate, int maxRstFramesPerWindow, int secondsPerWindow)
-
-
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()
-