Home / Function/ T() — netty Function Reference

T() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  b721c3ac_b414_8bdd_fe58_4f03fa932a0c["T()"]
  fecc1f44_e4b9_1952_ee31_f901896cd383["NioUdtProvider"]
  b721c3ac_b414_8bdd_fe58_4f03fa932a0c -->|defined in| fecc1f44_e4b9_1952_ee31_f901896cd383
  style b721c3ac_b414_8bdd_fe58_4f03fa932a0c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport-udt/src/main/java/io/netty/channel/udt/nio/NioUdtProvider.java lines 205–239

    @SuppressWarnings("unchecked")
    @Override
    public T newChannel() {
        switch (kind) {
            case ACCEPTOR:
                switch (type) {
                    case DATAGRAM:
                        return (T) new NioUdtMessageAcceptorChannel();
                    case STREAM:
                        return (T) new NioUdtByteAcceptorChannel();
                    default:
                        throw new IllegalStateException("wrong type=" + type);
                }
            case CONNECTOR:
                switch (type) {
                    case DATAGRAM:
                        return (T) new NioUdtMessageConnectorChannel();
                    case STREAM:
                        return (T) new NioUdtByteConnectorChannel();
                    default:
                        throw new IllegalStateException("wrong type=" + type);
                }
            case RENDEZVOUS:
                switch (type) {
                    case DATAGRAM:
                        return (T) new NioUdtMessageRendezvousChannel();
                    case STREAM:
                        return (T) new NioUdtByteRendezvousChannel();
                    default:
                        throw new IllegalStateException("wrong type=" + type);
                }
            default:
                throw new IllegalStateException("wrong kind=" + kind);
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does T() do?
T() is a function in the netty codebase, defined in transport-udt/src/main/java/io/netty/channel/udt/nio/NioUdtProvider.java.
Where is T() defined?
T() is defined in transport-udt/src/main/java/io/netty/channel/udt/nio/NioUdtProvider.java at line 205.

Analyze Your Own Codebase

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

Try Supermodel Free