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 Http2Exceptionprivate final TickerFields inherited from class Http2FrameListenerDecorator
listener -
Constructor Summary
ConstructorsConstructorDescriptionHttp2MaxRstFrameListener(Http2FrameListener listener, int maxRstFramesPerWindow, int secondsPerWindow, Ticker ticker) -
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, onWindowUpdateReadMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
logger
-
RST_FRAME_RATE_EXCEEDED
-
nanosPerWindow
private final long nanosPerWindow -
maxRstFramesPerWindow
private final int maxRstFramesPerWindow -
ticker
-
lastRstFrameNano
private long lastRstFrameNano -
receivedRstInWindow
private int receivedRstInWindow
-
-
Constructor Details
-
Http2MaxRstFrameListener
Http2MaxRstFrameListener(Http2FrameListener listener, int maxRstFramesPerWindow, int secondsPerWindow, Ticker ticker)
-
-
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
-