Home / Class/ AbstractIdleTask Class — netty Architecture

AbstractIdleTask Class — netty Architecture

Architecture documentation for the AbstractIdleTask class in IdleStateHandler.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  08bb18f2_2602_109f_15bf_f7e153bb9b36["AbstractIdleTask"]
  a1f123b7_92d5_8d02_8243_55137a597728["IdleStateHandler.java"]
  08bb18f2_2602_109f_15bf_f7e153bb9b36 -->|defined in| a1f123b7_92d5_8d02_8243_55137a597728
  9e881513_ada2_0f6d_db26_102fac500e06["AbstractIdleTask()"]
  08bb18f2_2602_109f_15bf_f7e153bb9b36 -->|method| 9e881513_ada2_0f6d_db26_102fac500e06
  eed714e2_34ef_ccc1_8c8a_aba0248bf6b5["run()"]
  08bb18f2_2602_109f_15bf_f7e153bb9b36 -->|method| eed714e2_34ef_ccc1_8c8a_aba0248bf6b5

Relationship Graph

Source Code

handler/src/main/java/io/netty/handler/timeout/IdleStateHandler.java lines 475–493

    private abstract static class AbstractIdleTask implements Runnable {

        private final ChannelHandlerContext ctx;

        AbstractIdleTask(ChannelHandlerContext ctx) {
            this.ctx = ctx;
        }

        @Override
        public void run() {
            if (!ctx.channel().isOpen()) {
                return;
            }

            run(ctx);
        }

        protected abstract void run(ChannelHandlerContext ctx);
    }

Frequently Asked Questions

What is the AbstractIdleTask class?
AbstractIdleTask is a class in the netty codebase, defined in handler/src/main/java/io/netty/handler/timeout/IdleStateHandler.java.
Where is AbstractIdleTask defined?
AbstractIdleTask is defined in handler/src/main/java/io/netty/handler/timeout/IdleStateHandler.java at line 475.

Analyze Your Own Codebase

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

Try Supermodel Free