WorldClockClientInitializer Class — netty Architecture
Architecture documentation for the WorldClockClientInitializer class in WorldClockClientInitializer.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 15f1184e_244b_19b6_0a61_3d6ee08df31b["WorldClockClientInitializer"] f9442f8f_546d_3d52_1c5a_97b93f9a9938["WorldClockClientInitializer.java"] 15f1184e_244b_19b6_0a61_3d6ee08df31b -->|defined in| f9442f8f_546d_3d52_1c5a_97b93f9a9938 cabb2adf_dd45_fb76_eb5c_d3210eda6908["WorldClockClientInitializer()"] 15f1184e_244b_19b6_0a61_3d6ee08df31b -->|method| cabb2adf_dd45_fb76_eb5c_d3210eda6908 1cc6fa42_bf57_1941_f493_9ee86f685bcd["initChannel()"] 15f1184e_244b_19b6_0a61_3d6ee08df31b -->|method| 1cc6fa42_bf57_1941_f493_9ee86f685bcd
Relationship Graph
Source Code
example/src/main/java/io/netty/example/worldclock/WorldClockClientInitializer.java lines 27–50
public class WorldClockClientInitializer extends ChannelInitializer<SocketChannel> {
private final SslContext sslCtx;
public WorldClockClientInitializer(SslContext sslCtx) {
this.sslCtx = sslCtx;
}
@Override
public void initChannel(SocketChannel ch) {
ChannelPipeline p = ch.pipeline();
if (sslCtx != null) {
p.addLast(sslCtx.newHandler(ch.alloc(), WorldClockClient.HOST, WorldClockClient.PORT));
}
p.addLast(new ProtobufVarint32FrameDecoder());
p.addLast(new ProtobufDecoder(WorldClockProtocol.LocalTimes.getDefaultInstance()));
p.addLast(new ProtobufVarint32LengthFieldPrepender());
p.addLast(new ProtobufEncoder());
p.addLast(new WorldClockClientHandler());
}
}
Source
Frequently Asked Questions
What is the WorldClockClientInitializer class?
WorldClockClientInitializer is a class in the netty codebase, defined in example/src/main/java/io/netty/example/worldclock/WorldClockClientInitializer.java.
Where is WorldClockClientInitializer defined?
WorldClockClientInitializer is defined in example/src/main/java/io/netty/example/worldclock/WorldClockClientInitializer.java at line 27.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free