Home / Function/ doRegister() — netty Function Reference

doRegister() — netty Function Reference

Architecture documentation for the doRegister() function in AbstractNioChannel.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  15b106da_6b20_8dff_f759_2805b60f945d["doRegister()"]
  ee3727e1_0d64_fa3f_39b7_5b5d3cee6721["AbstractNioChannel"]
  15b106da_6b20_8dff_f759_2805b60f945d -->|defined in| ee3727e1_0d64_fa3f_39b7_5b5d3cee6721
  style 15b106da_6b20_8dff_f759_2805b60f945d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/main/java/io/netty/channel/nio/AbstractNioChannel.java lines 458–470

    @SuppressWarnings("unchecked")
    @Override
    protected void doRegister(ChannelPromise promise) {
        assert registration == null;
        ((IoEventLoop) eventLoop()).register((AbstractNioUnsafe) unsafe()).addListener(f -> {
            if (f.isSuccess()) {
                registration = (IoRegistration) f.getNow();
                promise.setSuccess();
            } else {
                promise.setFailure(f.cause());
            }
        });
    }

Domain

Subdomains

Frequently Asked Questions

What does doRegister() do?
doRegister() is a function in the netty codebase, defined in transport/src/main/java/io/netty/channel/nio/AbstractNioChannel.java.
Where is doRegister() defined?
doRegister() is defined in transport/src/main/java/io/netty/channel/nio/AbstractNioChannel.java at line 458.

Analyze Your Own Codebase

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

Try Supermodel Free