Home / Function/ handleLoopException() — netty Function Reference

handleLoopException() — netty Function Reference

Architecture documentation for the handleLoopException() function in NioIoHandler.java from the netty codebase.

Function java Buffer Search called by 1

Entity Profile

Dependency Diagram

graph TD
  7006124b_c1a3_1e03_afbd_e97032ecd2dd["handleLoopException()"]
  db526e28_8aae_a182_b56b_dc12824d89f5["NioIoHandler"]
  7006124b_c1a3_1e03_afbd_e97032ecd2dd -->|defined in| db526e28_8aae_a182_b56b_dc12824d89f5
  bfebd9e6_05a3_0eea_3b0f_b34d5870ab36["run()"]
  bfebd9e6_05a3_0eea_3b0f_b34d5870ab36 -->|calls| 7006124b_c1a3_1e03_afbd_e97032ecd2dd
  style 7006124b_c1a3_1e03_afbd_e97032ecd2dd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/main/java/io/netty/channel/nio/NioIoHandler.java lines 498–508

    private static void handleLoopException(Throwable t) {
        logger.warn("Unexpected exception in the selector loop.", t);

        // Prevent possible consecutive immediate failures that lead to
        // excessive CPU consumption.
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            // Ignore.
        }
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does handleLoopException() do?
handleLoopException() is a function in the netty codebase, defined in transport/src/main/java/io/netty/channel/nio/NioIoHandler.java.
Where is handleLoopException() defined?
handleLoopException() is defined in transport/src/main/java/io/netty/channel/nio/NioIoHandler.java at line 498.
What calls handleLoopException()?
handleLoopException() is called by 1 function(s): run.

Analyze Your Own Codebase

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

Try Supermodel Free