Home / Class/ IoUringChannelOption Class — netty Architecture

IoUringChannelOption Class — netty Architecture

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

Entity Profile

Dependency Diagram

graph TD
  86247b35_f053_e47c_6ef6_450f3f141428["IoUringChannelOption"]
  8dc2f7aa_ea6f_e63a_27f0_a971738ba695["IoUringChannelOption.java"]
  86247b35_f053_e47c_6ef6_450f3f141428 -->|defined in| 8dc2f7aa_ea6f_e63a_27f0_a971738ba695
  604140c8_1b81_8a3a_063f_e45032e721be["IoUringChannelOption()"]
  86247b35_f053_e47c_6ef6_450f3f141428 -->|method| 604140c8_1b81_8a3a_063f_e45032e721be

Relationship Graph

Source Code

transport-classes-io_uring/src/main/java/io/netty/channel/uring/IoUringChannelOption.java lines 21–76

public final class IoUringChannelOption<T> extends UnixChannelOption<T> {

    private IoUringChannelOption() { }

    public static final ChannelOption<Boolean> TCP_CORK = valueOf(IoUringChannelOption.class, "TCP_CORK");
    public static final ChannelOption<Long> TCP_NOTSENT_LOWAT =
            valueOf(IoUringChannelOption.class, "TCP_NOTSENT_LOWAT");
    public static final ChannelOption<Integer> TCP_KEEPIDLE = valueOf(IoUringChannelOption.class, "TCP_KEEPIDLE");
    public static final ChannelOption<Integer> TCP_KEEPINTVL = valueOf(IoUringChannelOption.class, "TCP_KEEPINTVL");
    public static final ChannelOption<Integer> TCP_KEEPCNT = valueOf(IoUringChannelOption.class, "TCP_KEEPCNT");
    public static final ChannelOption<Integer> TCP_USER_TIMEOUT =
            valueOf(IoUringChannelOption.class, "TCP_USER_TIMEOUT");
    public static final ChannelOption<Boolean> IP_FREEBIND = valueOf("IP_FREEBIND");
    public static final ChannelOption<Boolean> IP_TRANSPARENT = valueOf("IP_TRANSPARENT");
    /**
     * @deprecated Use {@link ChannelOption#TCP_FASTOPEN} instead.
     */
    public static final ChannelOption<Integer> TCP_FASTOPEN = ChannelOption.TCP_FASTOPEN;

    public static final ChannelOption<Integer> TCP_DEFER_ACCEPT =
            ChannelOption.valueOf(IoUringChannelOption.class, "TCP_DEFER_ACCEPT");
    public static final ChannelOption<Boolean> TCP_QUICKACK = valueOf(IoUringChannelOption.class, "TCP_QUICKACK");

    public static final ChannelOption<Integer> MAX_DATAGRAM_PAYLOAD_SIZE = valueOf("MAX_DATAGRAM_PAYLOAD_SIZE");

    /**
     * If {@param positive} try to use a buffer ring when submitting recv / read / readv {@link IoUringIoOps}.
     * If it is set to {@code -1}, no buffer ring will be used. Be aware that you can only change the group
     * before the channel is registered.
     * <p>
     * Check
     * <a href="https://man7.org/linux/man-pages/man3/io_uring_setup_buf_ring.3.html"> man io_uring_setup_buf_ring</a>
     * and this <a href="https://lwn.net/Articles/815491/">LWN article</a> for more details.
     */
    public static final ChannelOption<Short> IO_URING_BUFFER_GROUP_ID =
            ChannelOption.valueOf(IoUringChannelOption.class, "IO_URING_BUFFER_GROUP_ID");

    /**
     * The threshold for zero-copy write (send_zc and sendmsg_zc).
     * If it is set to {@code -1}, then this function will be disabled.
     * <p>
     * If the locked memory limit is too low you will observe
     * <a href="https://github.com/axboe/liburing/commit/e951bf0c08c81a2ea0c4b7bca7e4494f2043d367">-ENOMEM</a> and
     * writes will be failed. This is a clear sign that you should increase the locked memory limit via
     * {@code ulimit -l}.
     * <p>
     * Check
     * <a href="https://man.archlinux.org/man/io_uring_enter.2.en#IORING_OP_SEND_ZC"> man io_uring_enter</a>
     * for more details.
     * <p>
     */
    public static final ChannelOption<Integer> IO_URING_WRITE_ZERO_COPY_THRESHOLD =
            ChannelOption.valueOf(IoUringChannelOption.class, "IO_URING_WRITE_ZERO_COPY_THRESHOLD");

    public static final ChannelOption<Boolean> IP_MULTICAST_ALL = valueOf("IP_MULTICAST_ALL");
}

Frequently Asked Questions

What is the IoUringChannelOption class?
IoUringChannelOption is a class in the netty codebase, defined in transport-classes-io_uring/src/main/java/io/netty/channel/uring/IoUringChannelOption.java.
Where is IoUringChannelOption defined?
IoUringChannelOption is defined in transport-classes-io_uring/src/main/java/io/netty/channel/uring/IoUringChannelOption.java at line 21.

Analyze Your Own Codebase

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

Try Supermodel Free