Home / Type/ IoRegistration Type — netty Architecture

IoRegistration Type — netty Architecture

Architecture documentation for the IoRegistration type/interface in IoRegistration.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  f7db8ff2_9832_94a9_4a15_847ececf48ff["IoRegistration"]
  fb0b8bb7_87b4_9829_d90a_762653c339ec["IoRegistration.java"]
  f7db8ff2_9832_94a9_4a15_847ececf48ff -->|defined in| fb0b8bb7_87b4_9829_d90a_762653c339ec
  style f7db8ff2_9832_94a9_4a15_847ececf48ff fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/main/java/io/netty/channel/IoRegistration.java lines 22–53

public interface IoRegistration {

    /**
     * Implementation specific attachment, which might be {@code null}.
     *
     * @return  attachment.
     */
    <T> T attachment();

    /**
     * Submit the {@link IoOps} to the registration.
     *
     * @param   ops ops.
     * @return  an identifier for the operation, which might be unique or not (depending on the implementation).
     */
    long submit(IoOps ops);

    /**
     * Returns {@code true} if the registration is still valid. Once {@link #cancel()} is called this
     * will return {@code false}.
     *
     * @return  valid.
     */
    boolean isValid();

    /**
     * Cancel the registration.
     *
     * @return {@code true} if cancellation was successful, {@code false} otherwise.
     */
    boolean cancel();
}

Frequently Asked Questions

What is the IoRegistration type?
IoRegistration is a type/interface in the netty codebase, defined in transport/src/main/java/io/netty/channel/IoRegistration.java.
Where is IoRegistration defined?
IoRegistration is defined in transport/src/main/java/io/netty/channel/IoRegistration.java at line 22.

Analyze Your Own Codebase

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

Try Supermodel Free