String() — netty Function Reference
Architecture documentation for the String() function in AbstractChannel.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 8b0c0a96_7e53_1f0e_711d_216c7ec35b04["String()"] 5db74d02_3876_98d6_bb77_e445d8c46783["AbstractChannel"] 8b0c0a96_7e53_1f0e_711d_216c7ec35b04 -->|defined in| 5db74d02_3876_98d6_bb77_e445d8c46783 style 8b0c0a96_7e53_1f0e_711d_216c7ec35b04 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/main/java/io/netty/channel/AbstractChannel.java lines 240–278
@Override
public String toString() {
boolean active = isActive();
if (strValActive == active && strVal != null) {
return strVal;
}
SocketAddress remoteAddr = remoteAddress();
SocketAddress localAddr = localAddress();
if (remoteAddr != null) {
StringBuilder buf = new StringBuilder(96)
.append("[id: 0x")
.append(id.asShortText())
.append(", L:")
.append(localAddr)
.append(active? " - " : " ! ")
.append("R:")
.append(remoteAddr)
.append(']');
strVal = buf.toString();
} else if (localAddr != null) {
StringBuilder buf = new StringBuilder(64)
.append("[id: 0x")
.append(id.asShortText())
.append(", L:")
.append(localAddr)
.append(']');
strVal = buf.toString();
} else {
StringBuilder buf = new StringBuilder(16)
.append("[id: 0x")
.append(id.asShortText())
.append(']');
strVal = buf.toString();
}
strValActive = active;
return strVal;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does String() do?
String() is a function in the netty codebase, defined in transport/src/main/java/io/netty/channel/AbstractChannel.java.
Where is String() defined?
String() is defined in transport/src/main/java/io/netty/channel/AbstractChannel.java at line 240.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free