Home / Class/ NioSelectableChannelIoHandle Class — netty Architecture

NioSelectableChannelIoHandle Class — netty Architecture

Architecture documentation for the NioSelectableChannelIoHandle class in NioSelectableChannelIoHandle.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  ce1a617f_e9a5_1e05_1c0a_4b12d407785c["NioSelectableChannelIoHandle"]
  810eb6ef_51d0_9aae_ebc2_29ddc1367608["NioSelectableChannelIoHandle.java"]
  ce1a617f_e9a5_1e05_1c0a_4b12d407785c -->|defined in| 810eb6ef_51d0_9aae_ebc2_29ddc1367608
  f203d69c_2d98_1696_8d25_0538f1bf7274["NioSelectableChannelIoHandle()"]
  ce1a617f_e9a5_1e05_1c0a_4b12d407785c -->|method| f203d69c_2d98_1696_8d25_0538f1bf7274
  8c776657_d4ad_2e96_e05d_21c149ee772b["handle()"]
  ce1a617f_e9a5_1e05_1c0a_4b12d407785c -->|method| 8c776657_d4ad_2e96_e05d_21c149ee772b
  c90eca45_1085_e3d0_5690_dadc7c34479b["close()"]
  ce1a617f_e9a5_1e05_1c0a_4b12d407785c -->|method| c90eca45_1085_e3d0_5690_dadc7c34479b
  e55a2e3d_e0b9_567f_40c7_3fd174137cb7["SelectableChannel()"]
  ce1a617f_e9a5_1e05_1c0a_4b12d407785c -->|method| e55a2e3d_e0b9_567f_40c7_3fd174137cb7
  f0cd8f64_d4d9_2850_947f_40043d039a77["deregister()"]
  ce1a617f_e9a5_1e05_1c0a_4b12d407785c -->|method| f0cd8f64_d4d9_2850_947f_40043d039a77

Relationship Graph

Source Code

transport/src/main/java/io/netty/channel/nio/NioSelectableChannelIoHandle.java lines 32–60

public abstract class NioSelectableChannelIoHandle<S extends SelectableChannel> implements IoHandle, NioIoHandle {
    private final S channel;

    public NioSelectableChannelIoHandle(S channel) {
        this.channel = ObjectUtil.checkNotNull(channel, "channel");
    }

    @Override
    public void handle(IoRegistration registration, IoEvent ioEvent) {
        SelectionKey key = registration.attachment();
        NioSelectableChannelIoHandle.this.handle(channel, key);
    }

    @Override
    public void close() throws Exception {
        channel.close();
    }

    @Override
    public SelectableChannel selectableChannel() {
        return channel;
    }

    protected abstract void handle(S channel, SelectionKey key);

    protected void deregister(S channel) {
        // NOOP.
    }
}

Frequently Asked Questions

What is the NioSelectableChannelIoHandle class?
NioSelectableChannelIoHandle is a class in the netty codebase, defined in transport/src/main/java/io/netty/channel/nio/NioSelectableChannelIoHandle.java.
Where is NioSelectableChannelIoHandle defined?
NioSelectableChannelIoHandle is defined in transport/src/main/java/io/netty/channel/nio/NioSelectableChannelIoHandle.java at line 32.

Analyze Your Own Codebase

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

Try Supermodel Free