public interface DuplexChannel extends Channel
Channel
that has two sides that can be shutdown independently.Channel.Unsafe
限定符和类型 | 方法和说明 |
---|---|
boolean |
isInputShutdown()
Returns
true if and only if the remote peer shut down its output so that no more
data is received from this channel. |
boolean |
isOutputShutdown() |
boolean |
isShutdown()
Determine if both the input and output of this channel have been shutdown.
|
ChannelFuture |
shutdown()
Will shutdown the input and output sides of this channel.
|
ChannelFuture |
shutdown(ChannelPromise promise)
Will shutdown the input and output sides of this channel.
|
ChannelFuture |
shutdownInput() |
ChannelFuture |
shutdownInput(ChannelPromise promise)
Will shutdown the input and notify
ChannelPromise . |
ChannelFuture |
shutdownOutput() |
ChannelFuture |
shutdownOutput(ChannelPromise promise)
Will shutdown the output and notify
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
if and only if the remote peer shut down its output so that no more
data is received from this channel. Note that the semantic of this method is different from
that of Socket.shutdownInput()
and 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
- will be completed when both shutdown operations complete.