Home / Function/ runAllTasksBeforeDestroy() — netty Function Reference

runAllTasksBeforeDestroy() — netty Function Reference

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

Function java Buffer Telemetry calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  e422e9d3_1ca3_619c_c230_1924aa80fc46["runAllTasksBeforeDestroy()"]
  6e8a7bbd_d782_0f59_8bd2_22f815f8ecad["ManualIoEventLoop"]
  e422e9d3_1ca3_619c_c230_1924aa80fc46 -->|defined in| 6e8a7bbd_d782_0f59_8bd2_22f815f8ecad
  5047d6fd_705b_2516_f43b_43d0d4eed8f0["run()"]
  5047d6fd_705b_2516_f43b_43d0d4eed8f0 -->|calls| e422e9d3_1ca3_619c_c230_1924aa80fc46
  71302cf5_5128_e497_27ae_5d79625b4107["runAllTasks()"]
  e422e9d3_1ca3_619c_c230_1924aa80fc46 -->|calls| 71302cf5_5128_e497_27ae_5d79625b4107
  eb3c0e75_ca52_c8d2_04c6_92c2e500b077["confirmShutdown()"]
  e422e9d3_1ca3_619c_c230_1924aa80fc46 -->|calls| eb3c0e75_ca52_c8d2_04c6_92c2e500b077
  style e422e9d3_1ca3_619c_c230_1924aa80fc46 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/main/java/io/netty/channel/ManualIoEventLoop.java lines 244–265

    private int runAllTasksBeforeDestroy() {
        // Run all tasks before prepare to destroy.
        int run = runAllTasks(-1, false);
        handler.prepareToDestroy();
        if (confirmShutdown()) {
            // Destroy the handler now and run all remaining tasks.
            try {
                handler.destroy();
                for (;;) {
                    int r = runAllTasks(-1, false);
                    run += r;
                    if (r == 0) {
                        break;
                    }
                }
            } finally {
                state.set(ST_TERMINATED);
                terminationFuture.setSuccess(null);
            }
        }
        return run;
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does runAllTasksBeforeDestroy() do?
runAllTasksBeforeDestroy() is a function in the netty codebase, defined in transport/src/main/java/io/netty/channel/ManualIoEventLoop.java.
Where is runAllTasksBeforeDestroy() defined?
runAllTasksBeforeDestroy() is defined in transport/src/main/java/io/netty/channel/ManualIoEventLoop.java at line 244.
What does runAllTasksBeforeDestroy() call?
runAllTasksBeforeDestroy() calls 2 function(s): confirmShutdown, runAllTasks.
What calls runAllTasksBeforeDestroy()?
runAllTasksBeforeDestroy() 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