Home / Function/ doClose() — netty Function Reference

doClose() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  61d4a3db_d2f2_7e01_320c_a620f47ecc31["doClose()"]
  6ab3b865_9e00_5866_2cdd_b82a66aed0be["KQueueServerDomainSocketChannel"]
  61d4a3db_d2f2_7e01_320c_a620f47ecc31 -->|defined in| 6ab3b865_9e00_5866_2cdd_b82a66aed0be
  style 61d4a3db_d2f2_7e01_320c_a620f47ecc31 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport-classes-kqueue/src/main/java/io/netty/channel/kqueue/KQueueServerDomainSocketChannel.java lines 67–82

    @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-kqueue/src/main/java/io/netty/channel/kqueue/KQueueServerDomainSocketChannel.java.
Where is doClose() defined?
doClose() is defined in transport-classes-kqueue/src/main/java/io/netty/channel/kqueue/KQueueServerDomainSocketChannel.java at line 67.

Analyze Your Own Codebase

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

Try Supermodel Free