Home / Function/ throwIfInEventLoop() — netty Function Reference

throwIfInEventLoop() — netty Function Reference

Architecture documentation for the throwIfInEventLoop() function in ManualIoEventLoop.java from the netty codebase.

Function java Buffer Telemetry calls 1 called by 2

Entity Profile

Dependency Diagram

graph TD
  d99bba70_d0b3_0243_0413_6eba1bde3022["throwIfInEventLoop()"]
  6e8a7bbd_d782_0f59_8bd2_22f815f8ecad["ManualIoEventLoop"]
  d99bba70_d0b3_0243_0413_6eba1bde3022 -->|defined in| 6e8a7bbd_d782_0f59_8bd2_22f815f8ecad
  f34e446c_1dc1_459f_3a83_8c2e5a25f9f5["T()"]
  f34e446c_1dc1_459f_3a83_8c2e5a25f9f5 -->|calls| d99bba70_d0b3_0243_0413_6eba1bde3022
  90710c3f_f9d2_6e3f_a379_4a40e5165a35["invokeAll()"]
  90710c3f_f9d2_6e3f_a379_4a40e5165a35 -->|calls| d99bba70_d0b3_0243_0413_6eba1bde3022
  cb229a6f_1187_05e7_0073_c0b824cf6ff7["inEventLoop()"]
  d99bba70_d0b3_0243_0413_6eba1bde3022 -->|calls| cb229a6f_1187_05e7_0073_c0b824cf6ff7
  style d99bba70_d0b3_0243_0413_6eba1bde3022 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/main/java/io/netty/channel/ManualIoEventLoop.java lines 642–647

    private void throwIfInEventLoop(String method) {
        if (inEventLoop()) {
            throw new RejectedExecutionException(
                    "Calling " + method + " from within the EventLoop is not allowed as it would deadlock");
        }
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does throwIfInEventLoop() do?
throwIfInEventLoop() is a function in the netty codebase, defined in transport/src/main/java/io/netty/channel/ManualIoEventLoop.java.
Where is throwIfInEventLoop() defined?
throwIfInEventLoop() is defined in transport/src/main/java/io/netty/channel/ManualIoEventLoop.java at line 642.
What does throwIfInEventLoop() call?
throwIfInEventLoop() calls 1 function(s): inEventLoop.
What calls throwIfInEventLoop()?
throwIfInEventLoop() is called by 2 function(s): T, invokeAll.

Analyze Your Own Codebase

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

Try Supermodel Free