Package io.netty.channel.group
Class ChannelMatchers
java.lang.Object
io.netty.channel.group.ChannelMatchers
Helper class which provides often used
ChannelMatcher
implementations.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
private static final class
private static final class
private static final class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ChannelMatcher
private static final ChannelMatcher
private static final ChannelMatcher
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ChannelMatcher
all()
Returns aChannelMatcher
that matches allChannel
s.static ChannelMatcher
compose
(ChannelMatcher... matchers) Return a composite of the givenChannelMatcher
s.static ChannelMatcher
invert
(ChannelMatcher matcher) Invert the givenChannelMatcher
.static ChannelMatcher
Returns aChannelMatcher
that matches the givenChannel
.static ChannelMatcher
isInstanceOf
(Class<? extends Channel> clazz) Returns aChannelMatcher
that matches allChannel
s that are an instance of sub-type of the given class.static ChannelMatcher
static ChannelMatcher
Returns aChannelMatcher
that matches allChannel
s except the given.static ChannelMatcher
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
-
Field Details
-
ALL_MATCHER
-
SERVER_CHANNEL_MATCHER
-
NON_SERVER_CHANNEL_MATCHER
-
-
Constructor Details
-
ChannelMatchers
private ChannelMatchers()
-
-
Method Details
-
all
Returns aChannelMatcher
that matches allChannel
s. -
isNot
Returns aChannelMatcher
that matches allChannel
s except the given. -
is
Returns aChannelMatcher
that matches the givenChannel
. -
isInstanceOf
Returns aChannelMatcher
that matches allChannel
s that are an instance of sub-type of the given class. -
isNotInstanceOf
Returns aChannelMatcher
that matches allChannel
s that are not an instance of sub-type of the given class. -
isServerChannel
-
isNonServerChannel
-
invert
Invert the givenChannelMatcher
. -
compose
Return a composite of the givenChannelMatcher
s. This means allChannelMatcher
must returntrue
to match.
-