Package io.netty.channel.socket
Interface DuplexChannel
-
- All Superinterfaces:
AttributeMap,Channel,ChannelOutboundInvoker,java.lang.Comparable<Channel>
- All Known Subinterfaces:
DomainSocketChannel,QuicStreamChannel,SocketChannel
- All Known Implementing Classes:
AbstractEpollStreamChannel,AbstractKQueueStreamChannel,EpollDomainSocketChannel,EpollSocketChannel,IoUringDomainSocketChannel,IoUringSocketChannel,KQueueDomainSocketChannel,KQueueSocketChannel,NioDomainSocketChannel,NioSocketChannel,OioSocketChannel
public interface DuplexChannel extends Channel
A duplexChannelthat has two sides that can be shutdown independently.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.netty.channel.Channel
Channel.Unsafe
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisInputShutdown()Returnstrueif and only if the remote peer shut down its output so that no more data is received from this channel.booleanisOutputShutdown()booleanisShutdown()Determine if both the input and output of this channel have been shutdown.ChannelFutureshutdown()Will shutdown the input and output sides of this channel.ChannelFutureshutdown(ChannelPromise promise)Will shutdown the input and output sides of this channel.ChannelFutureshutdownInput()ChannelFutureshutdownInput(ChannelPromise promise)Will shutdown the input and notifyChannelPromise.ChannelFutureshutdownOutput()ChannelFutureshutdownOutput(ChannelPromise promise)Will shutdown the output and notifyChannelPromise.-
Methods inherited from interface io.netty.util.AttributeMap
attr, hasAttr
-
Methods inherited from interface io.netty.channel.Channel
alloc, bind, bind, bytesBeforeUnwritable, bytesBeforeWritable, close, close, closeFuture, config, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, eventLoop, flush, getOption, id, isActive, isOpen, isRegistered, isWritable, localAddress, metadata, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, parent, pipeline, read, remoteAddress, setOption, unsafe, voidPromise, write, write, writeAndFlush, writeAndFlush
-
-
-
-
Method Detail
-
isInputShutdown
boolean isInputShutdown()
Returnstrueif 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 ofSocket.shutdownInput()andSocket.isInputShutdown().
-
shutdownInput
ChannelFuture shutdownInput()
- See Also:
Socket.shutdownInput()
-
shutdownInput
ChannelFuture shutdownInput(ChannelPromise promise)
Will shutdown the input and notifyChannelPromise.- See Also:
Socket.shutdownInput()
-
isOutputShutdown
boolean isOutputShutdown()
- See Also:
Socket.isOutputShutdown()
-
shutdownOutput
ChannelFuture shutdownOutput()
- See Also:
Socket.shutdownOutput()
-
shutdownOutput
ChannelFuture shutdownOutput(ChannelPromise promise)
Will shutdown the output and notifyChannelPromise.- See Also:
Socket.shutdownOutput()
-
isShutdown
boolean isShutdown()
Determine if both the input and output of this channel have been shutdown.
-
shutdown
ChannelFuture shutdown()
Will shutdown the input and output sides of this channel.- Returns:
- will be completed when both shutdown operations complete.
-
shutdown
ChannelFuture shutdown(ChannelPromise promise)
Will shutdown the input and output sides of this channel.- Parameters:
promise- will be completed when both shutdown operations complete.- Returns:
- will be completed when both shutdown operations complete.
-
-