Home / Function/ setChannelOption() — netty Function Reference

setChannelOption() — netty Function Reference

Architecture documentation for the setChannelOption() function in AbstractBootstrap.java from the netty codebase.

Function java Buffer Telemetry calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  2e7a8a4d_fd67_ee2e_890c_b1eae28ed4b7["setChannelOption()"]
  a88dc2b3_b55b_4623_5b37_4c0fc9181bb9["AbstractBootstrap"]
  2e7a8a4d_fd67_ee2e_890c_b1eae28ed4b7 -->|defined in| a88dc2b3_b55b_4623_5b37_4c0fc9181bb9
  6b034668_90a5_c4af_f7e5_349739eaefb3["setChannelOptions()"]
  6b034668_90a5_c4af_f7e5_349739eaefb3 -->|calls| 2e7a8a4d_fd67_ee2e_890c_b1eae28ed4b7
  b2335448_fcc4_5978_92e5_ab3d6752c90e["config()"]
  2e7a8a4d_fd67_ee2e_890c_b1eae28ed4b7 -->|calls| b2335448_fcc4_5978_92e5_ab3d6752c90e
  style 2e7a8a4d_fd67_ee2e_890c_b1eae28ed4b7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/main/java/io/netty/bootstrap/AbstractBootstrap.java lines 484–501

    @SuppressWarnings("unchecked")
    private static void setChannelOption(
            Channel channel, ChannelOption<?> option, Object value, InternalLogger logger) throws Throwable {
        try {
            if (!channel.config().setOption((ChannelOption<Object>) option, value)) {
                logger.warn("Unknown channel option '{}' for channel '{}' of type '{}'",
                        option, channel, channel.getClass());
            }
        } catch (Throwable t) {
            logger.warn(
                    "Failed to set channel option '{}' with value '{}' for channel '{}' of type '{}'",
                    option, value, channel, channel.getClass(), t);
            if (CLOSE_ON_SET_OPTION_FAILURE) {
                // Only rethrow if we want to close the channel in case of a failure.
                throw t;
            }
        }
    }

Domain

Subdomains

Calls

Frequently Asked Questions

What does setChannelOption() do?
setChannelOption() is a function in the netty codebase, defined in transport/src/main/java/io/netty/bootstrap/AbstractBootstrap.java.
Where is setChannelOption() defined?
setChannelOption() is defined in transport/src/main/java/io/netty/bootstrap/AbstractBootstrap.java at line 484.
What does setChannelOption() call?
setChannelOption() calls 1 function(s): config.
What calls setChannelOption()?
setChannelOption() is called by 1 function(s): setChannelOptions.

Analyze Your Own Codebase

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

Try Supermodel Free