Home / Type/ NioTask Type — netty Architecture

NioTask Type — netty Architecture

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

Entity Profile

Dependency Diagram

graph TD
  54d3208c_4360_a02f_6c4f_e1e3b2b1180b["NioTask"]
  9121c3d4_37a6_4c00_bc27_1eaa17c5d27d["NioTask.java"]
  54d3208c_4360_a02f_6c4f_e1e3b2b1180b -->|defined in| 9121c3d4_37a6_4c00_bc27_1eaa17c5d27d
  style 54d3208c_4360_a02f_6c4f_e1e3b2b1180b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/main/java/io/netty/channel/nio/NioTask.java lines 27–41

public interface NioTask<C extends SelectableChannel> {
    /**
     * Invoked when the {@link SelectableChannel} has been selected by the {@link Selector}.
     */
    void channelReady(C ch, SelectionKey key) throws Exception;

    /**
     * Invoked when the {@link SelectionKey} of the specified {@link SelectableChannel} has been cancelled and thus
     * this {@link NioTask} will not be notified anymore.
     *
     * @param cause the cause of the unregistration. {@code null} if a user called {@link SelectionKey#cancel()} or
     *              the event loop has been shut down.
     */
    void channelUnregistered(C ch, Throwable cause) throws Exception;
}

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free