public interface DuplexChannel extends Channel
Channel
,双面可独立关机。
Channel.Unsafe
Modifier and Type | Method and Description |
---|---|
boolean |
isInputShutdown()
返回
true 当且仅当远程节点关闭其输出以便从此通道接收不到更多数据时。
|
boolean |
isOutputShutdown() |
boolean |
isShutdown()
确定此通道的输入和输出是否都已关闭。
|
ChannelFuture |
shutdown()
将关闭此通道的输入和输出端。
|
ChannelFuture |
shutdown(ChannelPromise promise)
将关闭此通道的输入和输出端。
|
ChannelFuture |
shutdownInput() |
ChannelFuture |
shutdownInput(ChannelPromise promise)
将关闭输入并通知 ChannelPromise 。
|
ChannelFuture |
shutdownOutput() |
ChannelFuture |
shutdownOutput(ChannelPromise promise)
将关闭输出并通知 ChannelPromise 。
|
alloc, bytesBeforeUnwritable, bytesBeforeWritable, closeFuture, config, eventLoop, flush, id, isActive, isOpen, isRegistered, isWritable, localAddress, metadata, parent, pipeline, read, remoteAddress, unsafe
attr, hasAttr
bind, bind, close, close, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, voidPromise, write, write, writeAndFlush, writeAndFlush
boolean isInputShutdown()
true
当且仅当远程节点关闭其输出以便从此通道接收不到更多数据时。
请注意,此方法的语义不同于Socket.shutdownInput()
和Socket.isInputShutdown()
。
ChannelFuture shutdownInput()
Socket.shutdownInput()
ChannelFuture shutdownInput(ChannelPromise promise)
ChannelPromise
。
Socket.shutdownInput()
boolean isOutputShutdown()
Socket.isOutputShutdown()
ChannelFuture shutdownOutput()
Socket.shutdownOutput()
ChannelFuture shutdownOutput(ChannelPromise promise)
ChannelPromise
。
Socket.shutdownOutput()
boolean isShutdown()
ChannelFuture shutdown()
ChannelFuture shutdown(ChannelPromise promise)
promise
- 将在两次关机操作完成时完成。
Copyright © 2008–2018 The Netty Project. All rights reserved.