public final class ChannelMatchers
extends java.lang.Object
ChannelMatcher实现。
| Modifier and Type | Method and Description |
|---|---|
static ChannelMatcher |
all()
返回 ChannelMatcher匹配所有Channel秒。
|
static ChannelMatcher |
compose(ChannelMatcher... matchers)
返回给定 ChannelMatcher的组合。
|
static ChannelMatcher |
invert(ChannelMatcher matcher)
反转给定的 ChannelMatcher 。
|
static ChannelMatcher |
is(Channel channel)
返回 ChannelMatcher匹配给定Channel 。
|
static ChannelMatcher |
isInstanceOf(java.lang.Class<? extends Channel> clazz)
返回 ChannelMatcher匹配所有Channel个 S中的子类型的给定类的一个实例。
|
static ChannelMatcher |
isNonServerChannel()
返回 ChannelMatcher匹配所有Channel个 S中的类型不 ServerChannel 。
|
static ChannelMatcher |
isNot(Channel channel)
返回一个 ChannelMatcher ,它与除给定的所有Channel相匹配。
|
static ChannelMatcher |
isNotInstanceOf(java.lang.Class<? extends Channel> clazz)
返回一个 ChannelMatcher ,匹配所有Channel ,它们不是给定类的子类型的实例。
|
static ChannelMatcher |
isServerChannel()
返回 ChannelMatcher匹配所有Channel个 S中的类型ServerChannel 。
|
public static ChannelMatcher all()
ChannelMatcher匹配所有Channel秒。
public static ChannelMatcher isNot(Channel channel)
ChannelMatcher ,与给定的所有Channel相匹配。
public static ChannelMatcher is(Channel channel)
ChannelMatcher匹配给定Channel 。
public static ChannelMatcher isInstanceOf(java.lang.Class<? extends Channel> clazz)
ChannelMatcher匹配所有Channel个 S中的子类型的给定类的一个实例。
public static ChannelMatcher isNotInstanceOf(java.lang.Class<? extends Channel> clazz)
ChannelMatcher匹配所有Channel个 S中的未分型给定类的一个实例。
public static ChannelMatcher isServerChannel()
ChannelMatcher匹配所有Channel个 S中的类型ServerChannel 。
public static ChannelMatcher isNonServerChannel()
ChannelMatcher匹配所有Channel个 S中的类型不 ServerChannel 。
public static ChannelMatcher invert(ChannelMatcher matcher)
ChannelMatcher 。
public static ChannelMatcher compose(ChannelMatcher... matchers)
ChannelMatchers. This means all
ChannelMatcher must return
true to match.
Copyright © 2008–2018 The Netty Project. All rights reserved.