Top Description Methods
io.netty.channel

public Interface ChannelId

extends Serializable, Comparable<ChannelId>
Known Direct Implementers
io.netty.channel.DefaultChannelId, io.netty.channel.embedded.EmbeddedChannelId
Imports
java.io.Serializable

Represents the globally unique identifier of a Channel.

The identifier is generated from various sources listed in the following:

The global uniqueness of the generated identifier mostly depends on the MAC address and the current process ID, which are auto-detected at the class-loading time in best-effort manner. If all attempts to acquire them fail, a warning message is logged, and random values will be used instead. Alternatively, you can specify them manually via system properties:

Method Summary

Modifier and TypeMethod and Description
public String
asLongText()

Returns the long yet globally unique string representation of the ChannelId.

public String
asShortText()

Returns the short but globally non-unique string representation of the ChannelId.

Inherited from java.lang.Comparable:
compareTo

Method Detail

asLongTextback to summary
public String asLongText()

Returns the long yet globally unique string representation of the ChannelId.

asShortTextback to summary
public String asShortText()

Returns the short but globally non-unique string representation of the ChannelId.