- java.lang.Object
-
- io.netty5.channel.DefaultChannelId
-
- All Implemented Interfaces:
ChannelId
,Serializable
,Comparable<ChannelId>
public final class DefaultChannelId extends Object implements ChannelId
The defaultChannelId
implementation.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
asLongText()
Returns the long yet globally unique string representation of theChannelId
.String
asShortText()
Returns the short but globally non-unique string representation of theChannelId
.int
compareTo(ChannelId o)
boolean
equals(Object obj)
int
hashCode()
static DefaultChannelId
newInstance()
Returns a newDefaultChannelId
instance.String
toString()
-
-
-
Method Detail
-
newInstance
public static DefaultChannelId newInstance()
Returns a newDefaultChannelId
instance.
-
asShortText
public 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 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 interfaceComparable<ChannelId>
-
-