@Override public ChannelGroupFuture disconnect() { return disconnect(ChannelMatchers.all()); }
@Override public ChannelGroupFuture writeAndFlush(Object message) { return writeAndFlush(message, ChannelMatchers.all()); }
@Override public ChannelGroupFuture newCloseFuture() { return newCloseFuture(ChannelMatchers.all()); }
@Override public ChannelGroupFuture deregister() { return deregister(ChannelMatchers.all()); }
/** * Returns a {@link ChannelMatcher} that matches all {@link Channel}s that are <strong>not</strong> an * instance of sub-type of the given class. */ public static ChannelMatcher isNotInstanceOf(Class<? extends Channel> clazz) { return invert(isInstanceOf(clazz)); }
@Override public ChannelGroupFuture removeListener(GenericFutureListener<? extends Future<? super Void>> listener) { throw reject(); }
@Override public boolean matches(Channel channel) { return !matcher.matches(channel); } }
/** * Returns a {@link ChannelMatcher} that matches all {@link Channel}s that are an instance of sub-type of * the given class. */ public static ChannelMatcher isInstanceOf(Class<? extends Channel> clazz) { return new ClassMatcher(clazz); }
/** * Invert the given {@link ChannelMatcher}. */ public static ChannelMatcher invert(ChannelMatcher matcher) { return new InvertMatcher(matcher); }
/** * Returns a {@link ChannelMatcher} that matches the given {@link Channel}. */ public static ChannelMatcher is(Channel channel) { return new InstanceMatcher(channel); }
@Override public ChannelGroupFuture flushAndWrite(Object message, ChannelMatcher matcher) { return writeAndFlush(message, matcher); }
@Override public ChannelGroupFuture removeListeners(GenericFutureListener<? extends Future<? super Void>>... listeners) { throw reject(); }
@Override public boolean matches(Channel channel) { for (ChannelMatcher m: matchers) { if (!m.matches(channel)) { return false; } } return true; } }
@Override public ChannelGroupFuture awaitUninterruptibly() { throw reject(); }
@Override public boolean awaitUninterruptibly(long timeout, TimeUnit unit) { throw reject(); }
@Override public boolean awaitUninterruptibly(long timeoutMillis) { throw reject(); }