程序包 | 说明 |
---|---|
io.netty.channel.group |
A channel registry which helps a user maintain the list of open
Channel s and perform bulk operations on them. |
限定符和类型 | 方法和说明 |
---|---|
ChannelGroupFuture |
ChannelGroupFuture.addListener(GenericFutureListener<? extends Future<? super java.lang.Void>> listener) |
ChannelGroupFuture |
ChannelGroupFuture.addListeners(GenericFutureListener<? extends Future<? super java.lang.Void>>... listeners) |
ChannelGroupFuture |
ChannelGroupFuture.await() |
ChannelGroupFuture |
ChannelGroupFuture.awaitUninterruptibly() |
ChannelGroupFuture |
DefaultChannelGroup.close() |
ChannelGroupFuture |
ChannelGroup.close()
Closes all
Channel s in this group. |
ChannelGroupFuture |
DefaultChannelGroup.close(ChannelMatcher matcher) |
ChannelGroupFuture |
ChannelGroup.close(ChannelMatcher matcher)
Closes all
Channel s in this group that are matched by the given ChannelMatcher . |
ChannelGroupFuture |
DefaultChannelGroup.deregister() |
ChannelGroupFuture |
ChannelGroup.deregister()
已过时。
This method will be removed in the next major feature release.
Deregister all
Channel s in this group from their EventLoop .
Please note that this operation is asynchronous as ChannelOutboundInvoker.deregister() is. |
ChannelGroupFuture |
DefaultChannelGroup.deregister(ChannelMatcher matcher) |
ChannelGroupFuture |
ChannelGroup.deregister(ChannelMatcher matcher)
已过时。
This method will be removed in the next major feature release.
Deregister all
Channel s in this group from their EventLoop that are matched by the given
ChannelMatcher . Please note that this operation is asynchronous as ChannelOutboundInvoker.deregister() is. |
ChannelGroupFuture |
DefaultChannelGroup.disconnect() |
ChannelGroupFuture |
ChannelGroup.disconnect()
Disconnects all
Channel s in this group from their remote peers. |
ChannelGroupFuture |
DefaultChannelGroup.disconnect(ChannelMatcher matcher) |
ChannelGroupFuture |
ChannelGroup.disconnect(ChannelMatcher matcher)
Disconnects all
Channel s in this group from their remote peers,
that are matched by the given ChannelMatcher . |
ChannelGroupFuture |
DefaultChannelGroup.flushAndWrite(java.lang.Object message) |
ChannelGroupFuture |
ChannelGroup.flushAndWrite(java.lang.Object message)
已过时。
Use
ChannelGroup.writeAndFlush(Object) instead. |
ChannelGroupFuture |
DefaultChannelGroup.flushAndWrite(java.lang.Object message,
ChannelMatcher matcher) |
ChannelGroupFuture |
ChannelGroup.flushAndWrite(java.lang.Object message,
ChannelMatcher matcher)
已过时。
Use
ChannelGroup.writeAndFlush(Object, ChannelMatcher) instead. |
ChannelGroupFuture |
DefaultChannelGroup.newCloseFuture() |
ChannelGroupFuture |
ChannelGroup.newCloseFuture()
Returns the
ChannelGroupFuture which will be notified when all Channel s that are part of this
ChannelGroup , at the time of calling, are closed. |
ChannelGroupFuture |
DefaultChannelGroup.newCloseFuture(ChannelMatcher matcher) |
ChannelGroupFuture |
ChannelGroup.newCloseFuture(ChannelMatcher matcher)
Returns the
ChannelGroupFuture which will be notified when all Channel s that are part of this
ChannelGroup , at the time of calling, are closed. |
ChannelGroupFuture |
ChannelGroupFuture.removeListener(GenericFutureListener<? extends Future<? super java.lang.Void>> listener) |
ChannelGroupFuture |
ChannelGroupFuture.removeListeners(GenericFutureListener<? extends Future<? super java.lang.Void>>... listeners) |
ChannelGroupFuture |
ChannelGroupFuture.sync() |
ChannelGroupFuture |
ChannelGroupFuture.syncUninterruptibly() |
ChannelGroupFuture |
DefaultChannelGroup.write(java.lang.Object message) |
ChannelGroupFuture |
ChannelGroup.write(java.lang.Object message)
Writes the specified
message to all Channel s in this
group. |
ChannelGroupFuture |
DefaultChannelGroup.write(java.lang.Object message,
ChannelMatcher matcher) |
ChannelGroupFuture |
ChannelGroup.write(java.lang.Object message,
ChannelMatcher matcher)
Writes the specified
message to all Channel s in this
group that are matched by the given ChannelMatcher . |
ChannelGroupFuture |
DefaultChannelGroup.write(java.lang.Object message,
ChannelMatcher matcher,
boolean voidPromise) |
ChannelGroupFuture |
ChannelGroup.write(java.lang.Object message,
ChannelMatcher matcher,
boolean voidPromise)
Writes the specified
message to all Channel s in this
group that are matched by the given ChannelMatcher . |
ChannelGroupFuture |
DefaultChannelGroup.writeAndFlush(java.lang.Object message) |
ChannelGroupFuture |
ChannelGroup.writeAndFlush(java.lang.Object message)
Shortcut for calling
ChannelGroup.write(Object) and ChannelGroup.flush() . |
ChannelGroupFuture |
DefaultChannelGroup.writeAndFlush(java.lang.Object message,
ChannelMatcher matcher) |
ChannelGroupFuture |
ChannelGroup.writeAndFlush(java.lang.Object message,
ChannelMatcher matcher)
Shortcut for calling
ChannelGroup.write(Object) and ChannelGroup.flush() and only act on
Channel s that are matched by the ChannelMatcher . |
ChannelGroupFuture |
DefaultChannelGroup.writeAndFlush(java.lang.Object message,
ChannelMatcher matcher,
boolean voidPromise) |
ChannelGroupFuture |
ChannelGroup.writeAndFlush(java.lang.Object message,
ChannelMatcher matcher,
boolean voidPromise)
Shortcut for calling
ChannelGroup.write(Object, ChannelMatcher, boolean) and ChannelGroup.flush() and only act on
Channel s that are matched by the ChannelMatcher . |