Home / Function/ execute() — netty Function Reference

execute() — netty Function Reference

Architecture documentation for the execute() function in NonStickyEventExecutorGroup.java from the netty codebase.

Function java CommonUtil Concurrent calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  f324b658_e5d7_1d39_280a_67ba14086087["execute()"]
  0a6a7b0f_e4f7_262e_c01d_c793011590ee["NonStickyOrderedEventExecutor"]
  f324b658_e5d7_1d39_280a_67ba14086087 -->|defined in| 0a6a7b0f_e4f7_262e_c01d_c793011590ee
  4bceba0d_15d4_a9d8_93ab_0be435138980["execute()"]
  4bceba0d_15d4_a9d8_93ab_0be435138980 -->|calls| f324b658_e5d7_1d39_280a_67ba14086087
  4bceba0d_15d4_a9d8_93ab_0be435138980["execute()"]
  f324b658_e5d7_1d39_280a_67ba14086087 -->|calls| 4bceba0d_15d4_a9d8_93ab_0be435138980
  26597b68_1b9b_0daa_4db4_2de2cf123abc["run()"]
  f324b658_e5d7_1d39_280a_67ba14086087 -->|calls| 26597b68_1b9b_0daa_4db4_2de2cf123abc
  style f324b658_e5d7_1d39_280a_67ba14086087 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/main/java/io/netty/util/concurrent/NonStickyEventExecutorGroup.java lines 336–346

        @Override
        public void execute(Runnable command) {
            if (!tasks.offer(command)) {
                throw new RejectedExecutionException();
            }
            if (state.compareAndSet(NONE, SUBMITTED)) {
                // Actually it could happen that the runnable was picked up in between but we not care to much and just
                // execute ourself. At worst this will be a NOOP when run() is called.
                executor.execute(this);
            }
        }

Domain

Subdomains

Called By

Frequently Asked Questions

What does execute() do?
execute() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/concurrent/NonStickyEventExecutorGroup.java.
Where is execute() defined?
execute() is defined in common/src/main/java/io/netty/util/concurrent/NonStickyEventExecutorGroup.java at line 336.
What does execute() call?
execute() calls 2 function(s): execute, run.
What calls execute()?
execute() is called by 1 function(s): execute.

Analyze Your Own Codebase

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

Try Supermodel Free