Package io.netty.handler.codec.http2
Class Http2StreamChannelId
- java.lang.Object
-
- io.netty.handler.codec.http2.Http2StreamChannelId
-
final class Http2StreamChannelId extends java.lang.Object implements ChannelId
ChannelId implementation which is used by ourHttp2StreamChannel
implementation.
-
-
Field Summary
Fields Modifier and Type Field Description private int
id
private ChannelId
parentId
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description Http2StreamChannelId(ChannelId parentId, int id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
asLongText()
Returns the long yet globally unique string representation of theChannelId
.java.lang.String
asShortText()
Returns the short but globally non-unique string representation of theChannelId
.int
compareTo(ChannelId o)
boolean
equals(java.lang.Object obj)
int
hashCode()
java.lang.String
toString()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
id
private final int id
-
parentId
private final ChannelId parentId
-
-
Constructor Detail
-
Http2StreamChannelId
Http2StreamChannelId(ChannelId parentId, int id)
-
-
Method Detail
-
asShortText
public java.lang.String asShortText()
Description copied from interface:ChannelId
Returns the short but globally non-unique string representation of theChannelId
.- Specified by:
asShortText
in interfaceChannelId
-
asLongText
public java.lang.String asLongText()
Description copied from interface:ChannelId
Returns the long yet globally unique string representation of theChannelId
.- Specified by:
asLongText
in interfaceChannelId
-
compareTo
public int compareTo(ChannelId o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<ChannelId>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-