public final class DefaultChannelId extends java.lang.Object implements ChannelId
ChannelId implementation.| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
asLongText()
Returns the long yet globally unique string representation of the
ChannelId. |
java.lang.String |
asShortText()
Returns the short but globally non-unique string representation of the
ChannelId. |
int |
compareTo(ChannelId o) |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
static DefaultChannelId |
newInstance()
Returns a new
DefaultChannelId instance. |
java.lang.String |
toString() |
public static DefaultChannelId newInstance()
DefaultChannelId instance.public java.lang.String asShortText()
ChannelIdChannelId.asShortText in interface ChannelIdpublic java.lang.String asLongText()
ChannelIdChannelId.asLongText in interface ChannelIdpublic int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(ChannelId o)
compareTo in interface java.lang.Comparable<ChannelId>public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2008–2019 The Netty Project. All rights reserved.