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 longprivate static final InternalLoggerprivate final intprivate final longprivate intprivate static final Http2ExceptionFields inherited from class Http2FrameListenerDecorator
listener -
Constructor Summary
ConstructorsConstructorDescriptionHttp2MaxRstFrameListener(Http2FrameListener listener, int maxRstFramesPerWindow, int secondsPerWindow) -
Method Summary
Modifier and TypeMethodDescriptionvoidonRstStreamRead(ChannelHandlerContext ctx, int streamId, long errorCode) Handles an inboundRST_STREAMframe.Methods inherited from class 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: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
-