| 程序包 | 说明 |
|---|---|
| io.netty.channel.group |
A channel registry which helps a user maintain the list of open
Channels and perform bulk operations on them. |
| 限定符和类型 | 方法和说明 |
|---|---|
static ChannelMatcher |
ChannelMatchers.all()
Returns a
ChannelMatcher that matches all Channels. |
static ChannelMatcher |
ChannelMatchers.compose(ChannelMatcher... matchers)
Return a composite of the given
ChannelMatchers. |
static ChannelMatcher |
ChannelMatchers.invert(ChannelMatcher matcher)
Invert the given
ChannelMatcher. |
static ChannelMatcher |
ChannelMatchers.is(Channel channel)
Returns a
ChannelMatcher that matches the given Channel. |
static ChannelMatcher |
ChannelMatchers.isInstanceOf(java.lang.Class<? extends Channel> clazz)
Returns a
ChannelMatcher that matches all Channels that are an instance of sub-type of
the given class. |
static ChannelMatcher |
ChannelMatchers.isNonServerChannel()
|
static ChannelMatcher |
ChannelMatchers.isNot(Channel channel)
Returns a
ChannelMatcher that matches all Channels except the given. |
static ChannelMatcher |
ChannelMatchers.isNotInstanceOf(java.lang.Class<? extends Channel> clazz)
Returns a
ChannelMatcher that matches all Channels that are not an
instance of sub-type of the given class. |
static ChannelMatcher |
ChannelMatchers.isServerChannel()
|
| 限定符和类型 | 方法和说明 |
|---|---|
ChannelGroupFuture |
DefaultChannelGroup.close(ChannelMatcher matcher) |
ChannelGroupFuture |
ChannelGroup.close(ChannelMatcher matcher)
Closes all
Channels in this group that are matched by the given ChannelMatcher. |
static ChannelMatcher |
ChannelMatchers.compose(ChannelMatcher... matchers)
Return a composite of the given
ChannelMatchers. |
ChannelGroupFuture |
DefaultChannelGroup.deregister(ChannelMatcher matcher) |
ChannelGroupFuture |
ChannelGroup.deregister(ChannelMatcher matcher)
已过时。
This method will be removed in the next major feature release.
Deregister all
Channels in this group from their EventLoop that are matched by the given
ChannelMatcher. Please note that this operation is asynchronous as ChannelOutboundInvoker.deregister() is. |
ChannelGroupFuture |
DefaultChannelGroup.disconnect(ChannelMatcher matcher) |
ChannelGroupFuture |
ChannelGroup.disconnect(ChannelMatcher matcher)
Disconnects all
Channels in this group from their remote peers,
that are matched by the given ChannelMatcher. |
ChannelGroup |
DefaultChannelGroup.flush(ChannelMatcher matcher) |
ChannelGroup |
ChannelGroup.flush(ChannelMatcher matcher)
Flush all
Channels in this group that are matched by the given ChannelMatcher. |
ChannelGroupFuture |
DefaultChannelGroup.flushAndWrite(java.lang.Object message,
ChannelMatcher matcher) |
ChannelGroupFuture |
ChannelGroup.flushAndWrite(java.lang.Object message,
ChannelMatcher matcher)
已过时。
Use
ChannelGroup.writeAndFlush(Object, ChannelMatcher) instead. |
static ChannelMatcher |
ChannelMatchers.invert(ChannelMatcher matcher)
Invert the given
ChannelMatcher. |
ChannelGroupFuture |
DefaultChannelGroup.newCloseFuture(ChannelMatcher matcher) |
ChannelGroupFuture |
ChannelGroup.newCloseFuture(ChannelMatcher matcher)
Returns the
ChannelGroupFuture which will be notified when all Channels that are part of this
ChannelGroup, at the time of calling, are closed. |
ChannelGroupFuture |
DefaultChannelGroup.write(java.lang.Object message,
ChannelMatcher matcher) |
ChannelGroupFuture |
ChannelGroup.write(java.lang.Object message,
ChannelMatcher matcher)
Writes the specified
message to all Channels in this
group that are matched by the given ChannelMatcher. |
ChannelGroupFuture |
DefaultChannelGroup.write(java.lang.Object message,
ChannelMatcher matcher,
boolean voidPromise) |
ChannelGroupFuture |
ChannelGroup.write(java.lang.Object message,
ChannelMatcher matcher,
boolean voidPromise)
Writes the specified
message to all Channels in this
group that are matched by the given ChannelMatcher. |
ChannelGroupFuture |
DefaultChannelGroup.writeAndFlush(java.lang.Object message,
ChannelMatcher matcher) |
ChannelGroupFuture |
ChannelGroup.writeAndFlush(java.lang.Object message,
ChannelMatcher matcher)
Shortcut for calling
ChannelGroup.write(Object) and ChannelGroup.flush() and only act on
Channels that are matched by the ChannelMatcher. |
ChannelGroupFuture |
DefaultChannelGroup.writeAndFlush(java.lang.Object message,
ChannelMatcher matcher,
boolean voidPromise) |
ChannelGroupFuture |
ChannelGroup.writeAndFlush(java.lang.Object message,
ChannelMatcher matcher,
boolean voidPromise)
Shortcut for calling
ChannelGroup.write(Object, ChannelMatcher, boolean) and ChannelGroup.flush() and only act on
Channels that are matched by the ChannelMatcher. |