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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate long
private static final InternalLogger
private final int
private final long
private int
private static final Http2Exception
Fields inherited from class io.netty.handler.codec.http2.Http2FrameListenerDecorator
listener
-
Constructor Summary
ConstructorsConstructorDescriptionHttp2MaxRstFrameListener
(Http2FrameListener listener, int maxRstFramesPerWindow, int secondsPerWindow) -
Method Summary
Modifier and TypeMethodDescriptionvoid
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 Details
-
logger
-
RST_FRAME_RATE_EXCEEDED
-
nanosPerWindow
private final long nanosPerWindow -
maxRstFramesPerWindow
private final int maxRstFramesPerWindow -
lastRstFrameNano
private long lastRstFrameNano -
receivedRstInWindow
private int receivedRstInWindow
-
-
Constructor Details
-
Http2MaxRstFrameListener
Http2MaxRstFrameListener(Http2FrameListener listener, int maxRstFramesPerWindow, int secondsPerWindow)
-
-
Method Details
-
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
-