ChannelOutboundHandlerAdapter Class — netty Architecture
Architecture documentation for the ChannelOutboundHandlerAdapter class in ChannelOutboundHandlerAdapter.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 89fc6887_eb95_0220_b30a_3f13bcdb2ce6["ChannelOutboundHandlerAdapter"] 337bdf8c_6e48_e2cb_7a55_6b091560bfb0["ChannelOutboundHandlerAdapter.java"] 89fc6887_eb95_0220_b30a_3f13bcdb2ce6 -->|defined in| 337bdf8c_6e48_e2cb_7a55_6b091560bfb0 d40c88a8_0c8d_5595_f20f_5f4851a7eb54["bind()"] 89fc6887_eb95_0220_b30a_3f13bcdb2ce6 -->|method| d40c88a8_0c8d_5595_f20f_5f4851a7eb54 ff7bdef3_1194_6a42_f291_a5c4b30b13e7["connect()"] 89fc6887_eb95_0220_b30a_3f13bcdb2ce6 -->|method| ff7bdef3_1194_6a42_f291_a5c4b30b13e7 c869b598_d198_10e8_bcf0_78a651ddb9d2["disconnect()"] 89fc6887_eb95_0220_b30a_3f13bcdb2ce6 -->|method| c869b598_d198_10e8_bcf0_78a651ddb9d2 eb3be415_4f9a_9063_64ca_708fed0cdd9d["close()"] 89fc6887_eb95_0220_b30a_3f13bcdb2ce6 -->|method| eb3be415_4f9a_9063_64ca_708fed0cdd9d dec9e260_f4f6_5514_72aa_f6972f9723d1["deregister()"] 89fc6887_eb95_0220_b30a_3f13bcdb2ce6 -->|method| dec9e260_f4f6_5514_72aa_f6972f9723d1 38b691d4_279e_9e37_3386_deef4a337e38["read()"] 89fc6887_eb95_0220_b30a_3f13bcdb2ce6 -->|method| 38b691d4_279e_9e37_3386_deef4a337e38 73377363_9d36_882b_65ea_9911b0652988["write()"] 89fc6887_eb95_0220_b30a_3f13bcdb2ce6 -->|method| 73377363_9d36_882b_65ea_9911b0652988 ace341ee_2b91_0ac9_73b7_8628093f89dd["flush()"] 89fc6887_eb95_0220_b30a_3f13bcdb2ce6 -->|method| ace341ee_2b91_0ac9_73b7_8628093f89dd
Relationship Graph
Source Code
transport/src/main/java/io/netty/channel/ChannelOutboundHandlerAdapter.java lines 26–127
public class ChannelOutboundHandlerAdapter extends ChannelHandlerAdapter implements ChannelOutboundHandler {
/**
* Calls {@link ChannelHandlerContext#bind(SocketAddress, ChannelPromise)} to forward
* to the next {@link ChannelOutboundHandler} in the {@link ChannelPipeline}.
*
* Sub-classes may override this method to change behavior.
*/
@Skip
@Override
public void bind(ChannelHandlerContext ctx, SocketAddress localAddress,
ChannelPromise promise) throws Exception {
ctx.bind(localAddress, promise);
}
/**
* Calls {@link ChannelHandlerContext#connect(SocketAddress, SocketAddress, ChannelPromise)} to forward
* to the next {@link ChannelOutboundHandler} in the {@link ChannelPipeline}.
*
* Sub-classes may override this method to change behavior.
*/
@Skip
@Override
public void connect(ChannelHandlerContext ctx, SocketAddress remoteAddress,
SocketAddress localAddress, ChannelPromise promise) throws Exception {
ctx.connect(remoteAddress, localAddress, promise);
}
/**
* Calls {@link ChannelHandlerContext#disconnect(ChannelPromise)} to forward
* to the next {@link ChannelOutboundHandler} in the {@link ChannelPipeline}.
*
* Sub-classes may override this method to change behavior.
*/
@Skip
@Override
public void disconnect(ChannelHandlerContext ctx, ChannelPromise promise)
throws Exception {
ctx.disconnect(promise);
}
/**
* Calls {@link ChannelHandlerContext#close(ChannelPromise)} to forward
* to the next {@link ChannelOutboundHandler} in the {@link ChannelPipeline}.
*
* Sub-classes may override this method to change behavior.
*/
@Skip
@Override
public void close(ChannelHandlerContext ctx, ChannelPromise promise)
throws Exception {
ctx.close(promise);
}
/**
* Calls {@link ChannelHandlerContext#deregister(ChannelPromise)} to forward
* to the next {@link ChannelOutboundHandler} in the {@link ChannelPipeline}.
*
* Sub-classes may override this method to change behavior.
*/
@Skip
@Override
public void deregister(ChannelHandlerContext ctx, ChannelPromise promise) throws Exception {
ctx.deregister(promise);
}
/**
* Calls {@link ChannelHandlerContext#read()} to forward
* to the next {@link ChannelOutboundHandler} in the {@link ChannelPipeline}.
*
* Sub-classes may override this method to change behavior.
*/
@Skip
@Override
public void read(ChannelHandlerContext ctx) throws Exception {
ctx.read();
}
/**
* Calls {@link ChannelHandlerContext#write(Object, ChannelPromise)} to forward
* to the next {@link ChannelOutboundHandler} in the {@link ChannelPipeline}.
Source
Frequently Asked Questions
What is the ChannelOutboundHandlerAdapter class?
ChannelOutboundHandlerAdapter is a class in the netty codebase, defined in transport/src/main/java/io/netty/channel/ChannelOutboundHandlerAdapter.java.
Where is ChannelOutboundHandlerAdapter defined?
ChannelOutboundHandlerAdapter is defined in transport/src/main/java/io/netty/channel/ChannelOutboundHandlerAdapter.java at line 26.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free