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 longlastRstFrameNanoprivate static InternalLoggerloggerprivate intmaxRstFramesPerWindowprivate longnanosPerWindowprivate intreceivedRstInWindowprivate static Http2ExceptionRST_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 voidonRstStreamRead(ChannelHandlerContext ctx, int streamId, long errorCode)Handles an inboundRST_STREAMframe.-
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:Http2FrameListenerHandles an inboundRST_STREAMframe.- Specified by:
onRstStreamReadin interfaceHttp2FrameListener- Overrides:
onRstStreamReadin 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
-
-