程序包 | 说明 |
---|---|
io.netty.channel |
The core channel API which is asynchronous and event-driven abstraction of
various transports such as a
NIO Channel.
|
io.netty.channel.embedded |
A virtual
Channel that helps wrapping a series of handlers to
unit test the handlers or use them in non-I/O context. |
io.netty.channel.group |
A channel registry which helps a user maintain the list of open
Channel s and perform bulk operations on them. |
限定符和类型 | 类和说明 |
---|---|
class |
DefaultChannelId
The default
ChannelId implementation. |
限定符和类型 | 方法和说明 |
---|---|
ChannelId |
Channel.id()
Returns the globally unique identifier of this
Channel . |
ChannelId |
AbstractChannel.id() |
protected ChannelId |
AbstractChannel.newId()
Returns a new
DefaultChannelId instance. |
限定符和类型 | 方法和说明 |
---|---|
int |
DefaultChannelId.compareTo(ChannelId o) |
构造器和说明 |
---|
AbstractChannel(Channel parent,
ChannelId id)
Creates a new instance.
|
构造器和说明 |
---|
EmbeddedChannel(Channel parent,
ChannelId channelId,
boolean register,
boolean hasDisconnect,
ChannelHandler... handlers)
Create a new instance with the channel ID set to the given ID and the pipeline
initialized with the specified handlers.
|
EmbeddedChannel(ChannelId channelId)
Create a new instance with the specified ID and an empty pipeline.
|
EmbeddedChannel(ChannelId channelId,
boolean register,
boolean hasDisconnect,
ChannelHandler... handlers)
Create a new instance with the channel ID set to the given ID and the pipeline
initialized with the specified handlers.
|
EmbeddedChannel(ChannelId channelId,
boolean hasDisconnect,
ChannelConfig config,
ChannelHandler... handlers)
Create a new instance with the channel ID set to the given ID and the pipeline
initialized with the specified handlers.
|
EmbeddedChannel(ChannelId channelId,
boolean hasDisconnect,
ChannelHandler... handlers)
Create a new instance with the channel ID set to the given ID and the pipeline
initialized with the specified handlers.
|
EmbeddedChannel(ChannelId channelId,
ChannelHandler... handlers)
Create a new instance with the channel ID set to the given ID and the pipeline
initialized with the specified handlers.
|
限定符和类型 | 方法和说明 |
---|---|
Channel |
DefaultChannelGroup.find(ChannelId id) |
Channel |
ChannelGroup.find(ChannelId id)
|