Package io.netty.handler.codec.http2
Class Http2MaxRstFrameListener
- java.lang.Object
-
- io.netty.handler.codec.http2.Http2FrameListenerDecorator
-
- io.netty.handler.codec.http2.Http2MaxRstFrameListener
-
- All Implemented Interfaces:
Http2FrameListener
final class Http2MaxRstFrameListener extends Http2FrameListenerDecorator
-
-
Field Summary
Fields Modifier and Type Field Description private long
lastRstFrameNano
private static InternalLogger
logger
private int
maxRstFramesPerWindow
private long
nanosPerWindow
private int
receivedRstInWindow
private static Http2Exception
RST_FRAME_RATE_EXCEEDED
-
Fields inherited from class io.netty.handler.codec.http2.Http2FrameListenerDecorator
listener
-
-
Constructor Summary
Constructors Constructor Description Http2MaxRstFrameListener(Http2FrameListener listener, int maxRstFramesPerWindow, int secondsPerWindow)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onRstStreamRead(ChannelHandlerContext ctx, int streamId, long errorCode)
Handles an inboundRST_STREAM
frame.-
Methods inherited from class io.netty.handler.codec.http2.Http2FrameListenerDecorator
onDataRead, onGoAwayRead, onHeadersRead, onHeadersRead, onPingAckRead, onPingRead, onPriorityRead, onPushPromiseRead, onSettingsAckRead, onSettingsRead, onUnknownFrame, onWindowUpdateRead
-
-
-
-
Field Detail
-
logger
private static final InternalLogger logger
-
RST_FRAME_RATE_EXCEEDED
private static final Http2Exception RST_FRAME_RATE_EXCEEDED
-
nanosPerWindow
private final long nanosPerWindow
-
maxRstFramesPerWindow
private final int maxRstFramesPerWindow
-
lastRstFrameNano
private long lastRstFrameNano
-
receivedRstInWindow
private int receivedRstInWindow
-
-
Constructor Detail
-
Http2MaxRstFrameListener
Http2MaxRstFrameListener(Http2FrameListener listener, int maxRstFramesPerWindow, int secondsPerWindow)
-
-
Method Detail
-
onRstStreamRead
public void onRstStreamRead(ChannelHandlerContext ctx, int streamId, long errorCode) throws Http2Exception
Description copied from interface:Http2FrameListener
Handles an inboundRST_STREAM
frame.- Specified by:
onRstStreamRead
in interfaceHttp2FrameListener
- Overrides:
onRstStreamRead
in classHttp2FrameListenerDecorator
- Parameters:
ctx
- the context from the handler where the frame was read.streamId
- the stream that is terminating.errorCode
- the error code identifying the type of failure.- Throws:
Http2Exception
-
-