Home / Function/ IoRegistration() — netty Function Reference

IoRegistration() — netty Function Reference

Architecture documentation for the IoRegistration() function in KQueueIoHandler.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  591d310f_5e1f_dc5f_af1f_fbabe28dfc23["IoRegistration()"]
  75a3ba71_0590_fec0_e352_8a91c916c5af["KQueueIoHandler"]
  591d310f_5e1f_dc5f_af1f_fbabe28dfc23 -->|defined in| 75a3ba71_0590_fec0_e352_8a91c916c5af
  5c6f2faf_144e_8480_a4f1_576f0c398566["DefaultKqueueIoRegistration()"]
  591d310f_5e1f_dc5f_af1f_fbabe28dfc23 -->|calls| 5c6f2faf_144e_8480_a4f1_576f0c398566
  a75c7d88_c5c2_7598_d12a_b4da6063f754["isHandleForChannel()"]
  591d310f_5e1f_dc5f_af1f_fbabe28dfc23 -->|calls| a75c7d88_c5c2_7598_d12a_b4da6063f754
  style 591d310f_5e1f_dc5f_af1f_fbabe28dfc23 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport-classes-kqueue/src/main/java/io/netty/channel/kqueue/KQueueIoHandler.java lines 383–403

    @Override
    public IoRegistration register(IoHandle handle) {
        final KQueueIoHandle kqueueHandle = cast(handle);
        if (kqueueHandle.ident() == KQUEUE_WAKE_UP_IDENT) {
            throw new IllegalArgumentException("ident " + KQUEUE_WAKE_UP_IDENT + " is reserved for internal usage");
        }

        DefaultKqueueIoRegistration registration = new DefaultKqueueIoRegistration(
                executor, kqueueHandle);
        DefaultKqueueIoRegistration old = registrations.put(registration.id, registration);
        if (old != null) {
            // This should never happen but just in case.
            registrations.put(old.id, old);
            throw new IllegalStateException();
        }
        if (registration.isHandleForChannel()) {
            numChannels++;
        }
        handle.registered();
        return registration;
    }

Domain

Subdomains

Frequently Asked Questions

What does IoRegistration() do?
IoRegistration() is a function in the netty codebase, defined in transport-classes-kqueue/src/main/java/io/netty/channel/kqueue/KQueueIoHandler.java.
Where is IoRegistration() defined?
IoRegistration() is defined in transport-classes-kqueue/src/main/java/io/netty/channel/kqueue/KQueueIoHandler.java at line 383.
What does IoRegistration() call?
IoRegistration() calls 2 function(s): DefaultKqueueIoRegistration, isHandleForChannel.

Analyze Your Own Codebase

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

Try Supermodel Free