Home / Function/ ChannelFuture() — netty Function Reference

ChannelFuture() — netty Function Reference

Architecture documentation for the ChannelFuture() function in EpollDomainDatagramUnicastTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  3ee14e63_a662_ffb3_b607_757a40841dd7["ChannelFuture()"]
  9ed2c345_e09d_33a2_7f3a_1534eb6498ee["EpollDomainDatagramUnicastTest"]
  3ee14e63_a662_ffb3_b607_757a40841dd7 -->|defined in| 9ed2c345_e09d_33a2_7f3a_1534eb6498ee
  style 3ee14e63_a662_ffb3_b607_757a40841dd7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport-native-epoll/src/test/java/io/netty/channel/epoll/EpollDomainDatagramUnicastTest.java lines 153–167

    @Override
    protected ChannelFuture write(Channel cc, ByteBuf buf, SocketAddress remote, WrapType wrapType) {
        switch (wrapType) {
            case DUP:
                return cc.write(new DomainDatagramPacket(buf.retainedDuplicate(), (DomainSocketAddress) remote));
            case SLICE:
                return cc.write(new DomainDatagramPacket(buf.retainedSlice(), (DomainSocketAddress) remote));
            case READ_ONLY:
                return cc.write(new DomainDatagramPacket(buf.retain().asReadOnly(), (DomainSocketAddress) remote));
            case NONE:
                return cc.write(new DomainDatagramPacket(buf.retain(), (DomainSocketAddress) remote));
            default:
                throw new Error("Unexpected wrap type: " + wrapType);
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does ChannelFuture() do?
ChannelFuture() is a function in the netty codebase, defined in transport-native-epoll/src/test/java/io/netty/channel/epoll/EpollDomainDatagramUnicastTest.java.
Where is ChannelFuture() defined?
ChannelFuture() is defined in transport-native-epoll/src/test/java/io/netty/channel/epoll/EpollDomainDatagramUnicastTest.java at line 153.

Analyze Your Own Codebase

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

Try Supermodel Free