Home / Class/ IoRegistrationWrapper Class — netty Architecture

IoRegistrationWrapper Class — netty Architecture

Architecture documentation for the IoRegistrationWrapper class in SingleThreadIoEventLoop.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  ade11948_2262_3016_1fe0_651abc482f54["IoRegistrationWrapper"]
  efd31c86_62e1_24b2_a3b4_d9f97657dd24["SingleThreadIoEventLoop.java"]
  ade11948_2262_3016_1fe0_651abc482f54 -->|defined in| efd31c86_62e1_24b2_a3b4_d9f97657dd24
  aaaa63db_006c_d843_cf5a_28a5d3cc4abc["IoRegistrationWrapper()"]
  ade11948_2262_3016_1fe0_651abc482f54 -->|method| aaaa63db_006c_d843_cf5a_28a5d3cc4abc
  f5a1c4ab_a676_1c40_da36_a560e4a324ee["T()"]
  ade11948_2262_3016_1fe0_651abc482f54 -->|method| f5a1c4ab_a676_1c40_da36_a560e4a324ee
  4cefca48_b7f3_1f09_d894_84269b78ed45["submit()"]
  ade11948_2262_3016_1fe0_651abc482f54 -->|method| 4cefca48_b7f3_1f09_d894_84269b78ed45
  b7f49162_b1fc_82c1_d07b_bd484ab45112["isValid()"]
  ade11948_2262_3016_1fe0_651abc482f54 -->|method| b7f49162_b1fc_82c1_d07b_bd484ab45112
  a6afd74c_d792_43e9_ec33_f7896fe64e1b["cancel()"]
  ade11948_2262_3016_1fe0_651abc482f54 -->|method| a6afd74c_d792_43e9_ec33_f7896fe64e1b

Relationship Graph

Source Code

transport/src/main/java/io/netty/channel/SingleThreadIoEventLoop.java lines 295–324

    private final class IoRegistrationWrapper implements IoRegistration {
        private final IoRegistration registration;
        IoRegistrationWrapper(IoRegistration registration) {
            this.registration = registration;
        }

        @Override
        public <T> T attachment() {
            return registration.attachment();
        }

        @Override
        public long submit(IoOps ops) {
            return registration.submit(ops);
        }

        @Override
        public boolean isValid() {
            return registration.isValid();
        }

        @Override
        public boolean cancel() {
            if (registration.cancel()) {
                numRegistrations.decrementAndGet();
                return true;
            }
            return false;
        }
    }

Frequently Asked Questions

What is the IoRegistrationWrapper class?
IoRegistrationWrapper is a class in the netty codebase, defined in transport/src/main/java/io/netty/channel/SingleThreadIoEventLoop.java.
Where is IoRegistrationWrapper defined?
IoRegistrationWrapper is defined in transport/src/main/java/io/netty/channel/SingleThreadIoEventLoop.java at line 295.

Analyze Your Own Codebase

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

Try Supermodel Free