Skip to the content.

Home / cs-notes / Architecture / Components / Netty / Handler / timeout / IdleStateHandler / ReaderIdleTimeoutTask / channelIdle

    /**
     * Is called when an {@link IdleStateEvent} should be fired. This implementation calls
     * {@link ChannelHandlerContext#fireUserEventTriggered(Object)}.
     */
    protected void channelIdle(ChannelHandlerContext ctx, IdleStateEvent evt) throws Exception {
        ctx.fireUserEventTriggered(evt);
    }