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
Http2FrameStreamimplementation.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Channelattachmentprivate intid(package private) Http2FrameStreamEventstateChanged(package private) Http2Streamstream(package private) Http2FrameStreamEventwritabilityChanged
-
Constructor Summary
Constructors Constructor Description DefaultHttp2FrameStream()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intid()Returns the stream identifier.(package private) Http2FrameCodec.DefaultHttp2FrameStreamsetStreamAndProperty(Http2Connection.PropertyKey streamKey, Http2Stream stream)Http2Stream.Statestate()Returns the state of this stream.java.lang.StringtoString()
-
-
-
Field Detail
-
id
private volatile int id
-
stream
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:Http2FrameStreamReturns the stream identifier.Use
Http2CodecUtil.isStreamIdValid(int)to check if the stream has already been assigned an identifier.- Specified by:
idin interfaceHttp2FrameStream
-
state
public Http2Stream.State state()
Description copied from interface:Http2FrameStreamReturns the state of this stream.- Specified by:
statein interfaceHttp2FrameStream
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-