Home / Function/ doClose() — netty Function Reference

doClose() — netty Function Reference

Architecture documentation for the doClose() function in EpollServerDomainSocketChannel.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  a59ac958_0d1b_11c1_5b18_b83d68f25ccf["doClose()"]
  25cf3904_97c1_9b10_b0ff_87d41f42214a["EpollServerDomainSocketChannel"]
  a59ac958_0d1b_11c1_5b18_b83d68f25ccf -->|defined in| 25cf3904_97c1_9b10_b0ff_87d41f42214a
  style a59ac958_0d1b_11c1_5b18_b83d68f25ccf fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport-classes-epoll/src/main/java/io/netty/channel/epoll/EpollServerDomainSocketChannel.java lines 76–91

    @Override
    protected void doClose() throws Exception {
        try {
            super.doClose();
        } finally {
            DomainSocketAddress local = this.local;
            if (local != null) {
                // Delete the socket file if possible.
                File socketFile = new File(local.path());
                boolean success = socketFile.delete();
                if (!success && logger.isDebugEnabled()) {
                    logger.debug("Failed to delete a domain socket file: {}", local.path());
                }
            }
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does doClose() do?
doClose() is a function in the netty codebase, defined in transport-classes-epoll/src/main/java/io/netty/channel/epoll/EpollServerDomainSocketChannel.java.
Where is doClose() defined?
doClose() is defined in transport-classes-epoll/src/main/java/io/netty/channel/epoll/EpollServerDomainSocketChannel.java at line 76.

Analyze Your Own Codebase

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

Try Supermodel Free