Package io.netty.handler.codec.http2
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
private final class Http2FrameCodec.ConnectionListener extends Http2ConnectionAdapter
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ConnectionListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
onHttp2StreamStateChanged0(Http2Stream stream)
void
onStreamActive(Http2Stream stream)
Notifies the listener that the given stream was made active (i.e.void
onStreamAdded(Http2Stream stream)
Notifies the listener that the given stream was added to the connection.void
onStreamClosed(Http2Stream stream)
Notifies the listener that the given stream is nowCLOSED
in both directions and will no longer be accessible viaHttp2Connection.forEachActiveStream(Http2StreamVisitor)
.void
onStreamHalfClosed(Http2Stream stream)
Notifies the listener that the given stream has transitioned fromOPEN
toHALF CLOSED
.-
Methods inherited from class io.netty.handler.codec.http2.Http2ConnectionAdapter
onGoAwayReceived, onGoAwaySent, onStreamRemoved
-
-
-
-
Method Detail
-
onStreamAdded
public void onStreamAdded(Http2Stream stream)
Description copied from interface:Http2Connection.Listener
Notifies the listener that the given stream was added to the connection. This stream may not yet be active (i.e.OPEN
orHALF CLOSED
).If a
RuntimeException
is thrown it will be logged and not propagated. Throwing from this method is not supported and is considered a programming error.- Specified by:
onStreamAdded
in interfaceHttp2Connection.Listener
- Overrides:
onStreamAdded
in classHttp2ConnectionAdapter
-
onStreamActive
public void onStreamActive(Http2Stream stream)
Description copied from interface:Http2Connection.Listener
Notifies the listener that the given stream was made active (i.e.OPEN
orHALF CLOSED
).If a
RuntimeException
is thrown it will be logged and not propagated. Throwing from this method is not supported and is considered a programming error.- Specified by:
onStreamActive
in interfaceHttp2Connection.Listener
- Overrides:
onStreamActive
in classHttp2ConnectionAdapter
-
onStreamClosed
public void onStreamClosed(Http2Stream stream)
Description copied from interface:Http2Connection.Listener
Notifies the listener that the given stream is nowCLOSED
in both directions and will no longer be accessible viaHttp2Connection.forEachActiveStream(Http2StreamVisitor)
.If a
RuntimeException
is thrown it will be logged and not propagated. Throwing from this method is not supported and is considered a programming error.- Specified by:
onStreamClosed
in interfaceHttp2Connection.Listener
- Overrides:
onStreamClosed
in classHttp2ConnectionAdapter
-
onStreamHalfClosed
public void onStreamHalfClosed(Http2Stream stream)
Description copied from interface:Http2Connection.Listener
Notifies the listener that the given stream has transitioned fromOPEN
toHALF 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
RuntimeException
is thrown it will be logged and not propagated. Throwing from this method is not supported and is considered a programming error.- Specified by:
onStreamHalfClosed
in interfaceHttp2Connection.Listener
- Overrides:
onStreamHalfClosed
in classHttp2ConnectionAdapter
-
onHttp2StreamStateChanged0
private void onHttp2StreamStateChanged0(Http2Stream stream)
-
-