Home / Function/ cancel() — netty Function Reference

cancel() — netty Function Reference

Architecture documentation for the cancel() function in LocalIoHandler.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  f7f15402_0515_6bbd_7ac7_806a1bf6116d["cancel()"]
  4b8753ff_21d9_fedc_7457_60275721bd3c["LocalIoRegistration"]
  f7f15402_0515_6bbd_7ac7_806a1bf6116d -->|defined in| 4b8753ff_21d9_fedc_7457_60275721bd3c
  cbb35c70_2795_a1a5_2322_95fc8a550b1b["cancel0()"]
  f7f15402_0515_6bbd_7ac7_806a1bf6116d -->|calls| cbb35c70_2795_a1a5_2322_95fc8a550b1b
  style f7f15402_0515_6bbd_7ac7_806a1bf6116d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/main/java/io/netty/channel/local/LocalIoHandler.java lines 136–147

        @Override
        public boolean cancel() {
            if (!canceled.compareAndSet(false, true)) {
                return false;
            }
            if (executor.isExecutorThread(Thread.currentThread())) {
                cancel0();
            } else {
                executor.execute(this::cancel0);
            }
            return true;
        }

Domain

Subdomains

Calls

Frequently Asked Questions

What does cancel() do?
cancel() is a function in the netty codebase, defined in transport/src/main/java/io/netty/channel/local/LocalIoHandler.java.
Where is cancel() defined?
cancel() is defined in transport/src/main/java/io/netty/channel/local/LocalIoHandler.java at line 136.
What does cancel() call?
cancel() calls 1 function(s): cancel0.

Analyze Your Own Codebase

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

Try Supermodel Free