public interface ChannelId extends java.io.Serializable, java.lang.Comparable<ChannelId>
Channel的全球唯一标识符。
标识符由以下各种来源生成:
System.currentTimeMillis() , System.nanoTime() , 生成的标识符的全局唯一性主要取决于MAC地址和当前进程ID,这些ID在加载时以尽力方式自动检测。 如果所有尝试获取它们都失败,则会记录一条警告消息,并将使用随机值。 或者,您可以通过系统属性手动指定它们:
io.netty.machineId - 48(或64)位整数的十六进制表示,可选用冒号或连字符分隔。 io.netty.processId - 0到65535之间的整数 | Modifier and Type | Method and Description |
|---|---|
java.lang.String |
asLongText()
|
java.lang.String |
asShortText()
|
Copyright © 2008–2018 The Netty Project. All rights reserved.