Home / Class/ UptimeServerHandler Class — netty Architecture

UptimeServerHandler Class — netty Architecture

Architecture documentation for the UptimeServerHandler class in UptimeServerHandler.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  ec0d4d03_cd70_9da1_6a7b_801ee50175f6["UptimeServerHandler"]
  50ac828a_5c69_955a_274a_3b376ea4001e["UptimeServerHandler.java"]
  ec0d4d03_cd70_9da1_6a7b_801ee50175f6 -->|defined in| 50ac828a_5c69_955a_274a_3b376ea4001e
  6443ba9b_684e_9ef7_5a1e_cbcb6e632014["channelRead0()"]
  ec0d4d03_cd70_9da1_6a7b_801ee50175f6 -->|method| 6443ba9b_684e_9ef7_5a1e_cbcb6e632014
  2f5c79a1_1cc4_027c_21cc_287b4910f0ab["exceptionCaught()"]
  ec0d4d03_cd70_9da1_6a7b_801ee50175f6 -->|method| 2f5c79a1_1cc4_027c_21cc_287b4910f0ab

Relationship Graph

Source Code

example/src/main/java/io/netty/example/uptime/UptimeServerHandler.java lines 22–35

@Sharable
public class UptimeServerHandler extends SimpleChannelInboundHandler<Object> {
    @Override
    public void channelRead0(ChannelHandlerContext ctx, Object msg) throws Exception {
        // discard
    }

    @Override
    public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {
        // Close the connection when an exception is raised.
        cause.printStackTrace();
        ctx.close();
    }
}

Frequently Asked Questions

What is the UptimeServerHandler class?
UptimeServerHandler is a class in the netty codebase, defined in example/src/main/java/io/netty/example/uptime/UptimeServerHandler.java.
Where is UptimeServerHandler defined?
UptimeServerHandler is defined in example/src/main/java/io/netty/example/uptime/UptimeServerHandler.java at line 22.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free