Home / Function/ handleLoopException() — netty Function Reference

handleLoopException() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  9096967a_5239_54dc_5c93_bfaffd5857cb["handleLoopException()"]
  75a3ba71_0590_fec0_e352_8a91c916c5af["KQueueIoHandler"]
  9096967a_5239_54dc_5c93_bfaffd5857cb -->|defined in| 75a3ba71_0590_fec0_e352_8a91c916c5af
  fa6e02de_7726_4944_12b6_ecd3e40bbdcb["run()"]
  fa6e02de_7726_4944_12b6_ecd3e40bbdcb -->|calls| 9096967a_5239_54dc_5c93_bfaffd5857cb
  style 9096967a_5239_54dc_5c93_bfaffd5857cb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport-classes-kqueue/src/main/java/io/netty/channel/kqueue/KQueueIoHandler.java lines 336–346

    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-classes-kqueue/src/main/java/io/netty/channel/kqueue/KQueueIoHandler.java.
Where is handleLoopException() defined?
handleLoopException() is defined in transport-classes-kqueue/src/main/java/io/netty/channel/kqueue/KQueueIoHandler.java at line 336.
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