Interface DuplexChannel

All Superinterfaces:
AttributeMap, Channel, ChannelOutboundInvoker, java.lang.Comparable<Channel>
All Known Subinterfaces:
DomainSocketChannel, SocketChannel
All Known Implementing Classes:
AbstractEpollStreamChannel, AbstractIoUringStreamChannel, AbstractKQueueStreamChannel, EpollDomainSocketChannel, EpollSocketChannel, IoUringDomainSocketChannel, IoUringSocketChannel, KQueueDomainSocketChannel, KQueueSocketChannel, NioDomainSocketChannel, NioSocketChannel, OioSocketChannel

public interface DuplexChannel extends Channel
A duplex Channel that has two sides that can be shutdown independently.
  • Method Details

    • isInputShutdown

      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. Note that the semantic of this method is different from that of Socket.shutdownInput() and Socket.isInputShutdown().
    • shutdownInput

      ChannelFuture shutdownInput()
      See Also:
      • Socket.shutdownInput()
    • shutdownInput

      ChannelFuture shutdownInput(ChannelPromise promise)
      Will shutdown the input and notify ChannelPromise.
      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 notify ChannelPromise.
      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.