Class ChannelMatchers
java.lang.Object
io.netty.channel.group.ChannelMatchers
Helper class which provides often used
ChannelMatcher implementations.-
Method Summary
Modifier and TypeMethodDescriptionstatic ChannelMatcherall()Returns aChannelMatcherthat matches allChannels.static ChannelMatchercompose(ChannelMatcher... matchers) Return a composite of the givenChannelMatchers.static ChannelMatcherinvert(ChannelMatcher matcher) Invert the givenChannelMatcher.static ChannelMatcherReturns aChannelMatcherthat matches the givenChannel.static ChannelMatcherisInstanceOf(Class<? extends Channel> clazz) Returns aChannelMatcherthat matches allChannels that are an instance of sub-type of the given class.static ChannelMatcherstatic ChannelMatcherReturns aChannelMatcherthat matches allChannels except the given.static ChannelMatcherisNotInstanceOf(Class<? extends Channel> clazz) Returns aChannelMatcherthat matches allChannels that are not an instance of sub-type of the given class.static ChannelMatcher
-
Method Details
-
all
Returns aChannelMatcherthat matches allChannels. -
isNot
Returns aChannelMatcherthat matches allChannels except the given. -
is
Returns aChannelMatcherthat matches the givenChannel. -
isInstanceOf
Returns aChannelMatcherthat matches allChannels that are an instance of sub-type of the given class. -
isNotInstanceOf
Returns aChannelMatcherthat matches allChannels that are not an instance of sub-type of the given class. -
isServerChannel
-
isNonServerChannel
-
invert
Invert the givenChannelMatcher. -
compose
Return a composite of the givenChannelMatchers. This means allChannelMatchermust returntrueto match.
-