Class Http2FrameCodec.ConnectionListener
java.lang.Object
io.netty.handler.codec.http2.Http2ConnectionAdapter
io.netty.handler.codec.http2.Http2FrameCodec.ConnectionListener
- All Implemented Interfaces:
Http2Connection.Listener
- Enclosing class:
Http2FrameCodec
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidvoidonStreamActive(Http2Stream stream) Notifies the listener that the given stream was made active (i.e.voidonStreamAdded(Http2Stream stream) Notifies the listener that the given stream was added to the connection.voidonStreamClosed(Http2Stream stream) Notifies the listener that the given stream is nowCLOSEDin both directions and will no longer be accessible viaHttp2Connection.forEachActiveStream(Http2StreamVisitor).voidonStreamHalfClosed(Http2Stream stream) Notifies the listener that the given stream has transitioned fromOPENtoHALF CLOSED.Methods inherited from class Http2ConnectionAdapter
onGoAwayReceived, onGoAwaySent, onStreamRemoved
-
Constructor Details
-
ConnectionListener
private ConnectionListener()
-
-
Method Details
-
onStreamAdded
Description copied from interface:Http2Connection.ListenerNotifies the listener that the given stream was added to the connection. This stream may not yet be active (i.e.OPENorHALF CLOSED).If a
RuntimeExceptionis thrown it will be logged and not propagated. Throwing from this method is not supported and is considered a programming error.- Specified by:
onStreamAddedin interfaceHttp2Connection.Listener- Overrides:
onStreamAddedin classHttp2ConnectionAdapter
-
onStreamActive
Description copied from interface:Http2Connection.ListenerNotifies the listener that the given stream was made active (i.e.OPENorHALF CLOSED).If a
RuntimeExceptionis thrown it will be logged and not propagated. Throwing from this method is not supported and is considered a programming error.- Specified by:
onStreamActivein interfaceHttp2Connection.Listener- Overrides:
onStreamActivein classHttp2ConnectionAdapter
-
onStreamClosed
Description copied from interface:Http2Connection.ListenerNotifies the listener that the given stream is nowCLOSEDin both directions and will no longer be accessible viaHttp2Connection.forEachActiveStream(Http2StreamVisitor).If a
RuntimeExceptionis thrown it will be logged and not propagated. Throwing from this method is not supported and is considered a programming error.- Specified by:
onStreamClosedin interfaceHttp2Connection.Listener- Overrides:
onStreamClosedin classHttp2ConnectionAdapter
-
onStreamHalfClosed
Description copied from interface:Http2Connection.ListenerNotifies the listener that the given stream has transitioned fromOPENtoHALF CLOSED. This method will not be called until a state transition occurs from whenHttp2Connection.Listener.onStreamActive(Http2Stream)was called. The stream can be inspected to determine which side isHALF CLOSED.If a
RuntimeExceptionis thrown it will be logged and not propagated. Throwing from this method is not supported and is considered a programming error.- Specified by:
onStreamHalfClosedin interfaceHttp2Connection.Listener- Overrides:
onStreamHalfClosedin classHttp2ConnectionAdapter
-
onHttp2StreamStateChanged0
-