Package | Description |
---|---|
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. |
Modifier and Type | Class and Description |
---|---|
class |
DefaultChannelId
The default
ChannelId implementation. |
Modifier and Type | Method and Description |
---|---|
ChannelId |
Channel.id()
Returns the globally unique identifier of this
Channel . |
ChannelId |
AbstractChannel.id() |
protected ChannelId |
AbstractChannel.newId()
Returns a new
DefaultChannelId instance. |
Modifier and Type | Method and Description |
---|---|
int |
DefaultChannelId.compareTo(ChannelId o) |
Constructor and Description |
---|
AbstractChannel(Channel parent,
ChannelId id)
Creates a new instance.
|
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
Channel |
DefaultChannelGroup.find(ChannelId id) |
Channel |
ChannelGroup.find(ChannelId id)
|
Copyright © 2008–2024 The Netty Project. All rights reserved.