Home / Function/ optionsAndAttributesMustBeAvailableOnChannelInit() — netty Function Reference

optionsAndAttributesMustBeAvailableOnChannelInit() — netty Function Reference

Architecture documentation for the optionsAndAttributesMustBeAvailableOnChannelInit() function in BootstrapTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  825388b1_2b3d_d6c5_e500_406f1feeb401["optionsAndAttributesMustBeAvailableOnChannelInit()"]
  7a7606db_8d2a_bfe0_9993_4aaa8e0a6e42["BootstrapTest"]
  825388b1_2b3d_d6c5_e500_406f1feeb401 -->|defined in| 7a7606db_8d2a_bfe0_9993_4aaa8e0a6e42
  style 825388b1_2b3d_d6c5_e500_406f1feeb401 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/test/java/io/netty/bootstrap/BootstrapTest.java lines 138–155

    @Test
    public void optionsAndAttributesMustBeAvailableOnChannelInit() throws InterruptedException {
        final AttributeKey<String> key = AttributeKey.valueOf(UUID.randomUUID().toString());
        new Bootstrap()
                .group(groupA)
                .channel(LocalChannel.class)
                .option(ChannelOption.CONNECT_TIMEOUT_MILLIS, 4242)
                .attr(key, "value")
                .handler(new ChannelInitializer<LocalChannel>() {
                    @Override
                    protected void initChannel(LocalChannel ch) throws Exception {
                        Integer option = ch.config().getOption(ChannelOption.CONNECT_TIMEOUT_MILLIS);
                        assertEquals(4242, (int) option);
                        assertEquals("value", ch.attr(key).get());
                    }
                })
                .bind(LocalAddress.ANY).sync();
    }

Domain

Subdomains

Frequently Asked Questions

What does optionsAndAttributesMustBeAvailableOnChannelInit() do?
optionsAndAttributesMustBeAvailableOnChannelInit() is a function in the netty codebase, defined in transport/src/test/java/io/netty/bootstrap/BootstrapTest.java.
Where is optionsAndAttributesMustBeAvailableOnChannelInit() defined?
optionsAndAttributesMustBeAvailableOnChannelInit() is defined in transport/src/test/java/io/netty/bootstrap/BootstrapTest.java at line 138.

Analyze Your Own Codebase

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

Try Supermodel Free