Home / Function/ T() — netty Function Reference

T() — netty Function Reference

Architecture documentation for the T() function in DefaultChannelConfig.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  a6209262_552e_c68f_af6c_a3ac31780733["T()"]
  13466572_b18b_f364_a7fa_7c3db65248c3["DefaultChannelConfig"]
  a6209262_552e_c68f_af6c_a3ac31780733 -->|defined in| 13466572_b18b_f364_a7fa_7c3db65248c3
  eddaf1d9_175b_2ec5_004c_4914ff7f590a["getConnectTimeoutMillis()"]
  a6209262_552e_c68f_af6c_a3ac31780733 -->|calls| eddaf1d9_175b_2ec5_004c_4914ff7f590a
  a3126cbb_7fb0_1e6d_0120_48cca64b8b45["getMaxMessagesPerRead()"]
  a6209262_552e_c68f_af6c_a3ac31780733 -->|calls| a3126cbb_7fb0_1e6d_0120_48cca64b8b45
  a5e86f2a_c796_bdf4_946d_98396a9f80c1["getWriteSpinCount()"]
  a6209262_552e_c68f_af6c_a3ac31780733 -->|calls| a5e86f2a_c796_bdf4_946d_98396a9f80c1
  2ef95d9d_bb6c_2254_9d11_d69e1f3c9990["isAutoRead()"]
  a6209262_552e_c68f_af6c_a3ac31780733 -->|calls| 2ef95d9d_bb6c_2254_9d11_d69e1f3c9990
  5ac82f85_cf8e_492a_27df_c329a0cb00e6["isAutoClose()"]
  a6209262_552e_c68f_af6c_a3ac31780733 -->|calls| 5ac82f85_cf8e_492a_27df_c329a0cb00e6
  b5cd4cba_7821_4c26_058b_54f21b0c467d["getWriteBufferHighWaterMark()"]
  a6209262_552e_c68f_af6c_a3ac31780733 -->|calls| b5cd4cba_7821_4c26_058b_54f21b0c467d
  b2564cc8_caf7_ef53_d712_b20150d7c2e5["getWriteBufferLowWaterMark()"]
  a6209262_552e_c68f_af6c_a3ac31780733 -->|calls| b2564cc8_caf7_ef53_d712_b20150d7c2e5
  fc3d00a5_e3a5_510d_84dc_956def43aa81["getPinEventExecutorPerGroup()"]
  a6209262_552e_c68f_af6c_a3ac31780733 -->|calls| fc3d00a5_e3a5_510d_84dc_956def43aa81
  7e8d58ef_3777_d959_b45f_53f6735c5835["getMaxMessagesPerWrite()"]
  a6209262_552e_c68f_af6c_a3ac31780733 -->|calls| 7e8d58ef_3777_d959_b45f_53f6735c5835
  style a6209262_552e_c68f_af6c_a3ac31780733 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/main/java/io/netty/channel/DefaultChannelConfig.java lines 120–165

    @Override
    @SuppressWarnings({ "unchecked", "deprecation" })
    public <T> T getOption(ChannelOption<T> option) {
        ObjectUtil.checkNotNull(option, "option");

        if (option == CONNECT_TIMEOUT_MILLIS) {
            return (T) Integer.valueOf(getConnectTimeoutMillis());
        }
        if (option == MAX_MESSAGES_PER_READ) {
            return (T) Integer.valueOf(getMaxMessagesPerRead());
        }
        if (option == WRITE_SPIN_COUNT) {
            return (T) Integer.valueOf(getWriteSpinCount());
        }
        if (option == ALLOCATOR) {
            return (T) getAllocator();
        }
        if (option == RECVBUF_ALLOCATOR) {
            return (T) getRecvByteBufAllocator();
        }
        if (option == AUTO_READ) {
            return (T) Boolean.valueOf(isAutoRead());
        }
        if (option == AUTO_CLOSE) {
            return (T) Boolean.valueOf(isAutoClose());
        }
        if (option == WRITE_BUFFER_HIGH_WATER_MARK) {
            return (T) Integer.valueOf(getWriteBufferHighWaterMark());
        }
        if (option == WRITE_BUFFER_LOW_WATER_MARK) {
            return (T) Integer.valueOf(getWriteBufferLowWaterMark());
        }
        if (option == WRITE_BUFFER_WATER_MARK) {
            return (T) getWriteBufferWaterMark();
        }
        if (option == MESSAGE_SIZE_ESTIMATOR) {
            return (T) getMessageSizeEstimator();
        }
        if (option == SINGLE_EVENTEXECUTOR_PER_GROUP) {
            return (T) Boolean.valueOf(getPinEventExecutorPerGroup());
        }
        if (option == MAX_MESSAGES_PER_WRITE) {
            return (T) Integer.valueOf(getMaxMessagesPerWrite());
        }
        return null;
    }

Domain

Subdomains

Frequently Asked Questions

What does T() do?
T() is a function in the netty codebase, defined in transport/src/main/java/io/netty/channel/DefaultChannelConfig.java.
Where is T() defined?
T() is defined in transport/src/main/java/io/netty/channel/DefaultChannelConfig.java at line 120.
What does T() call?
T() calls 9 function(s): getConnectTimeoutMillis, getMaxMessagesPerRead, getMaxMessagesPerWrite, getPinEventExecutorPerGroup, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteSpinCount, isAutoClose, and 1 more.

Analyze Your Own Codebase

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

Try Supermodel Free