DuplexChannel Type — netty Architecture
Architecture documentation for the DuplexChannel type/interface in DuplexChannel.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 4f1c1725_deeb_8bb9_ab5d_a4e4bcd76589["DuplexChannel"] 76482294_4701_0f0a_d336_2e72bd46011d["DuplexChannel.java"] 4f1c1725_deeb_8bb9_ab5d_a4e4bcd76589 -->|defined in| 76482294_4701_0f0a_d336_2e72bd46011d style 4f1c1725_deeb_8bb9_ab5d_a4e4bcd76589 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/main/java/io/netty/channel/socket/DuplexChannel.java lines 27–81
public interface DuplexChannel extends Channel {
/**
* Returns {@code 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 {@link Socket#shutdownInput()} and {@link Socket#isInputShutdown()}.
*/
boolean isInputShutdown();
/**
* @see Socket#shutdownInput()
*/
ChannelFuture shutdownInput();
/**
* Will shutdown the input and notify {@link ChannelPromise}.
*
* @see Socket#shutdownInput()
*/
ChannelFuture shutdownInput(ChannelPromise promise);
/**
* @see Socket#isOutputShutdown()
*/
boolean isOutputShutdown();
/**
* @see Socket#shutdownOutput()
*/
ChannelFuture shutdownOutput();
/**
* Will shutdown the output and notify {@link ChannelPromise}.
*
* @see Socket#shutdownOutput()
*/
ChannelFuture shutdownOutput(ChannelPromise promise);
/**
* Determine if both the input and output of this channel have been shutdown.
*/
boolean isShutdown();
/**
* Will shutdown the input and output sides of this channel.
* @return will be completed when both shutdown operations complete.
*/
ChannelFuture shutdown();
/**
* Will shutdown the input and output sides of this channel.
* @param promise will be completed when both shutdown operations complete.
* @return will be completed when both shutdown operations complete.
*/
ChannelFuture shutdown(ChannelPromise promise);
}
Source
Frequently Asked Questions
What is the DuplexChannel type?
DuplexChannel is a type/interface in the netty codebase, defined in transport/src/main/java/io/netty/channel/socket/DuplexChannel.java.
Where is DuplexChannel defined?
DuplexChannel is defined in transport/src/main/java/io/netty/channel/socket/DuplexChannel.java at line 27.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free