- java.lang.Object
-
- io.netty5.channel.DefaultChannelId
-
- All Implemented Interfaces:
ChannelId,Serializable,Comparable<ChannelId>
public final class DefaultChannelId extends Object implements ChannelId
The defaultChannelIdimplementation.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringasLongText()Returns the long yet globally unique string representation of theChannelId.StringasShortText()Returns the short but globally non-unique string representation of theChannelId.intcompareTo(ChannelId o)booleanequals(Object obj)inthashCode()static DefaultChannelIdnewInstance()Returns a newDefaultChannelIdinstance.StringtoString()
-
-
-
Method Detail
-
newInstance
public static DefaultChannelId newInstance()
Returns a newDefaultChannelIdinstance.
-
asShortText
public String asShortText()
Description copied from interface:ChannelIdReturns the short but globally non-unique string representation of theChannelId.- Specified by:
asShortTextin interfaceChannelId
-
asLongText
public String asLongText()
Description copied from interface:ChannelIdReturns the long yet globally unique string representation of theChannelId.- Specified by:
asLongTextin interfaceChannelId
-
compareTo
public int compareTo(ChannelId o)
- Specified by:
compareToin interfaceComparable<ChannelId>
-
-