public final class ChannelMatchers
extends java.lang.Object
ChannelMatcher implementations.| Modifier and Type | Class and Description |
|---|---|
private static class |
ChannelMatchers.ClassMatcher |
private static class |
ChannelMatchers.CompositeMatcher |
private static class |
ChannelMatchers.InstanceMatcher |
private static class |
ChannelMatchers.InvertMatcher |
| Modifier and Type | Field and Description |
|---|---|
private static ChannelMatcher |
ALL_MATCHER |
private static ChannelMatcher |
NON_SERVER_CHANNEL_MATCHER |
private static ChannelMatcher |
SERVER_CHANNEL_MATCHER |
| Modifier | Constructor and Description |
|---|---|
private |
ChannelMatchers() |
| Modifier and Type | Method and Description |
|---|---|
static ChannelMatcher |
all()
Returns a
ChannelMatcher that matches all Channels. |
static ChannelMatcher |
compose(ChannelMatcher... matchers)
Return a composite of the given
ChannelMatchers. |
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 Channels 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 Channels except the given. |
static ChannelMatcher |
isNotInstanceOf(java.lang.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 |
isServerChannel()
|
private static final ChannelMatcher ALL_MATCHER
private static final ChannelMatcher SERVER_CHANNEL_MATCHER
private static final ChannelMatcher NON_SERVER_CHANNEL_MATCHER
public static ChannelMatcher all()
ChannelMatcher that matches all Channels.public static ChannelMatcher isNot(Channel channel)
ChannelMatcher that matches all Channels 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 Channels 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 Channels 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)
ChannelMatchers. This means all ChannelMatcher must
return true to match.