| Package | Description |
|---|---|
| io.netty.channel.group |
A channel registry which helps a user maintain the list of open
Channels and perform bulk operations on them. |
| Modifier and Type | Method and Description |
|---|---|
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(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(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()
|
| Modifier and Type | Method and Description |
|---|---|
ChannelGroupFuture |
ChannelGroup.close(ChannelMatcher matcher)
Closes all
Channels in this group that match the given ChannelMatcher. |
ChannelGroupFuture |
DefaultChannelGroup.close(ChannelMatcher matcher) |
static ChannelMatcher |
ChannelMatchers.compose(ChannelMatcher... matchers)
Return a composite of the given
ChannelMatchers. |
ChannelGroupFuture |
ChannelGroup.deregister(ChannelMatcher matcher)
|
ChannelGroupFuture |
DefaultChannelGroup.deregister(ChannelMatcher matcher) |
ChannelGroupFuture |
ChannelGroup.disconnect(ChannelMatcher matcher)
Disconnects all
Channels in this group from their remote peers,
that match the given ChannelMatcher. |
ChannelGroupFuture |
DefaultChannelGroup.disconnect(ChannelMatcher matcher) |
ChannelGroup |
ChannelGroup.flush(ChannelMatcher matcher)
Flush all
Channels in this group that match the given ChannelMatcher. |
ChannelGroup |
DefaultChannelGroup.flush(ChannelMatcher matcher) |
static ChannelMatcher |
ChannelMatchers.invert(ChannelMatcher matcher)
Invert the given
ChannelMatcher. |
ChannelGroupFuture |
ChannelGroup.write(Object message,
ChannelMatcher matcher)
|
ChannelGroupFuture |
DefaultChannelGroup.write(Object message,
ChannelMatcher matcher) |
ChannelGroupFuture |
ChannelGroup.writeAndFlush(Object message,
ChannelMatcher matcher)
Shortcut for calling
ChannelGroup.write(Object) and ChannelGroup.flush() and only act on
Channels that match the ChannelMatcher. |
ChannelGroupFuture |
DefaultChannelGroup.writeAndFlush(Object message,
ChannelMatcher matcher) |
Copyright © 2008–2015 The Netty Project. All rights reserved.