Package io.netty.handler.codec.http2
Class Http2FrameCodec.DefaultHttp2FrameStream
- java.lang.Object
-
- io.netty.handler.codec.http2.Http2FrameCodec.DefaultHttp2FrameStream
-
- All Implemented Interfaces:
Http2FrameStream
- Enclosing class:
- Http2FrameCodec
static class Http2FrameCodec.DefaultHttp2FrameStream extends java.lang.Object implements Http2FrameStream
Http2FrameStream
implementation.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Channel
attachment
private int
id
(package private) Http2FrameStreamEvent
stateChanged
private Http2Stream
stream
(package private) Http2FrameStreamEvent
writabilityChanged
-
Constructor Summary
Constructors Constructor Description DefaultHttp2FrameStream()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
id()
Returns the stream identifier.(package private) Http2FrameCodec.DefaultHttp2FrameStream
setStreamAndProperty(Http2Connection.PropertyKey streamKey, Http2Stream stream)
Http2Stream.State
state()
Returns the state of this stream.java.lang.String
toString()
-
-
-
Field Detail
-
id
private volatile int id
-
stream
private volatile Http2Stream stream
-
stateChanged
final Http2FrameStreamEvent stateChanged
-
writabilityChanged
final Http2FrameStreamEvent writabilityChanged
-
attachment
Channel attachment
-
-
Method Detail
-
setStreamAndProperty
Http2FrameCodec.DefaultHttp2FrameStream setStreamAndProperty(Http2Connection.PropertyKey streamKey, Http2Stream stream)
-
id
public int id()
Description copied from interface:Http2FrameStream
Returns the stream identifier.Use
Http2CodecUtil.isStreamIdValid(int)
to check if the stream has already been assigned an identifier.- Specified by:
id
in interfaceHttp2FrameStream
-
state
public Http2Stream.State state()
Description copied from interface:Http2FrameStream
Returns the state of this stream.- Specified by:
state
in interfaceHttp2FrameStream
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-