public final class ChannelMatchers
extends java.lang.Object
ChannelMatcher
implementations.Modifier and Type | Method and Description |
---|---|
static ChannelMatcher |
all()
Returns a
ChannelMatcher that matches all Channel s. |
static ChannelMatcher |
compose(ChannelMatcher... matchers)
Return a composite of the given
ChannelMatcher s. |
static ChannelMatcher |
invert(ChannelMatcher matcher)
Invert the given
ChannelMatcher . |
static ChannelMatcher |
is(Channel channel)
Returns a
ChannelMatcher that matches the given Channel . |
static ChannelMatcher |
isInstanceOf(java.lang.Class<? extends Channel> clazz)
Returns a
ChannelMatcher that matches all Channel s that are an instance of sub-type of
the given class. |
static ChannelMatcher |
isNonServerChannel()
|
static ChannelMatcher |
isNot(Channel channel)
Returns a
ChannelMatcher that matches all Channel s except the given. |
static ChannelMatcher |
isNotInstanceOf(java.lang.Class<? extends Channel> clazz)
Returns a
ChannelMatcher that matches all Channel s that are not an
instance of sub-type of the given class. |
static ChannelMatcher |
isServerChannel()
|
public static ChannelMatcher all()
ChannelMatcher
that matches all Channel
s.public static ChannelMatcher isNot(Channel channel)
ChannelMatcher
that matches all Channel
s except the given.public static ChannelMatcher is(Channel channel)
ChannelMatcher
that matches the given Channel
.public static ChannelMatcher isInstanceOf(java.lang.Class<? extends Channel> clazz)
ChannelMatcher
that matches all Channel
s that are an instance of sub-type of
the given class.public static ChannelMatcher isNotInstanceOf(java.lang.Class<? extends Channel> clazz)
ChannelMatcher
that matches all Channel
s that are not an
instance of sub-type of the given class.public static ChannelMatcher isServerChannel()
public static ChannelMatcher isNonServerChannel()
public static ChannelMatcher invert(ChannelMatcher matcher)
ChannelMatcher
.public static ChannelMatcher compose(ChannelMatcher... matchers)
ChannelMatcher
s. This means all ChannelMatcher
must
return true
to match.Copyright © 2008–2018 The Netty Project. All rights reserved.