Home / Type/ IoHandlerFactory Type — netty Architecture

IoHandlerFactory Type — netty Architecture

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

Entity Profile

Dependency Diagram

graph TD
  069f928a_02c4_5a26_8187_51622a01d57a["IoHandlerFactory"]
  08bfcb4f_f9fa_bedf_6da0_16d0fc0d254e["IoHandlerFactory.java"]
  069f928a_02c4_5a26_8187_51622a01d57a -->|defined in| 08bfcb4f_f9fa_bedf_6da0_16d0fc0d254e
  style 069f928a_02c4_5a26_8187_51622a01d57a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/main/java/io/netty/channel/IoHandlerFactory.java lines 23–44

public interface IoHandlerFactory {

    /**
     * Creates a new {@link IoHandler} instance.
     *
     * @param ioExecutor        the {@link ThreadAwareExecutor} for the {@link IoHandler}.
     * @return                  a new {@link IoHandler} instance.
     */
    IoHandler newHandler(ThreadAwareExecutor ioExecutor);

    /**
     * Returns {@code true} if it's supported that the {@link ThreadAwareExecutor} might change its {@link Thread}
     * during the life-time of the {@link IoHandler} that can be created via {@link #newHandler(ThreadAwareExecutor)}.
     * That said even if changing the {@link Thread} is supported it must be guaranteed that the access rules specified
     * by {@link IoHandler} are not violated.
     *
     * @return {@code true} if changing is supported, {@code false} otherwise.
     */
    default boolean isChangingThreadSupported() {
        return false;
    }
}

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free