Uses of Interface
io.netty5.channel.group.ChannelMatcher
-
Packages that use ChannelMatcher Package Description io.netty5.channel.group A channel registry which helps a user maintain the list of openChannel
s and perform bulk operations on them. -
-
Uses of ChannelMatcher in io.netty5.channel.group
Methods in io.netty5.channel.group that return ChannelMatcher Modifier and Type Method Description static ChannelMatcher
ChannelMatchers. all()
Returns aChannelMatcher
that matches allChannel
s.static ChannelMatcher
ChannelMatchers. compose(ChannelMatcher... matchers)
Return a composite of the givenChannelMatcher
s.static ChannelMatcher
ChannelMatchers. invert(ChannelMatcher matcher)
Invert the givenChannelMatcher
.static ChannelMatcher
ChannelMatchers. is(Channel channel)
Returns aChannelMatcher
that matches the givenChannel
.static ChannelMatcher
ChannelMatchers. isInstanceOf(Class<? extends Channel> clazz)
Returns aChannelMatcher
that matches allChannel
s that are an instance of sub-type of the given class.static ChannelMatcher
ChannelMatchers. isNonServerChannel()
static ChannelMatcher
ChannelMatchers. isNot(Channel channel)
Returns aChannelMatcher
that matches allChannel
s except the given.static ChannelMatcher
ChannelMatchers. isNotInstanceOf(Class<? extends Channel> clazz)
Returns aChannelMatcher
that matches allChannel
s that are not an instance of sub-type of the given class.static ChannelMatcher
ChannelMatchers. isServerChannel()
Methods in io.netty5.channel.group with parameters of type ChannelMatcher Modifier and Type Method Description ChannelGroupFuture
ChannelGroup. close(ChannelMatcher matcher)
Closes allChannel
s in this group that are matched by the givenChannelMatcher
.ChannelGroupFuture
DefaultChannelGroup. close(ChannelMatcher matcher)
static ChannelMatcher
ChannelMatchers. compose(ChannelMatcher... matchers)
Return a composite of the givenChannelMatcher
s.ChannelGroupFuture
ChannelGroup. deregister(ChannelMatcher matcher)
Deprecated.This method will be removed in the next major feature release.ChannelGroupFuture
DefaultChannelGroup. deregister(ChannelMatcher matcher)
ChannelGroupFuture
ChannelGroup. disconnect(ChannelMatcher matcher)
Disconnects allChannel
s in this group from their remote peers, that are matched by the givenChannelMatcher
.ChannelGroupFuture
DefaultChannelGroup. disconnect(ChannelMatcher matcher)
ChannelGroup
ChannelGroup. flush(ChannelMatcher matcher)
Flush allChannel
s in this group that are matched by the givenChannelMatcher
.ChannelGroup
DefaultChannelGroup. flush(ChannelMatcher matcher)
ChannelGroupFuture
ChannelGroup. flushAndWrite(Object message, ChannelMatcher matcher)
Deprecated.UseChannelGroup.writeAndFlush(Object, ChannelMatcher)
instead.ChannelGroupFuture
DefaultChannelGroup. flushAndWrite(Object message, ChannelMatcher matcher)
static ChannelMatcher
ChannelMatchers. invert(ChannelMatcher matcher)
Invert the givenChannelMatcher
.ChannelGroupFuture
ChannelGroup. newCloseFuture(ChannelMatcher matcher)
Returns theChannelGroupFuture
which will be notified when allChannel
s that are part of thisChannelGroup
, at the time of calling, are closed.ChannelGroupFuture
DefaultChannelGroup. newCloseFuture(ChannelMatcher matcher)
ChannelGroupFuture
ChannelGroup. write(Object message, ChannelMatcher matcher)
Writes the specifiedmessage
to allChannel
s in this group that are matched by the givenChannelMatcher
.ChannelGroupFuture
DefaultChannelGroup. write(Object message, ChannelMatcher matcher)
ChannelGroupFuture
ChannelGroup. writeAndFlush(Object message, ChannelMatcher matcher)
Shortcut for callingChannelGroup.write(Object)
andChannelGroup.flush()
and only act onChannel
s that are matched by theChannelMatcher
.ChannelGroupFuture
DefaultChannelGroup. writeAndFlush(Object message, ChannelMatcher matcher)
-