ChannelFuture() — netty Function Reference
Architecture documentation for the ChannelFuture() function in HttpServer.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD f931d1ec_9bc8_8e3a_7a8e_7506887d428d["ChannelFuture()"] b5adda21_162a_b7dd_9c2d_3d63f677a52f["HttpServer"] f931d1ec_9bc8_8e3a_7a8e_7506887d428d -->|defined in| b5adda21_162a_b7dd_9c2d_3d63f677a52f style f931d1ec_9bc8_8e3a_7a8e_7506887d428d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
example/src/main/java/io/netty/example/http2/tiles/HttpServer.java lines 48–65
public ChannelFuture start() throws Exception {
ServerBootstrap b = new ServerBootstrap();
b.option(ChannelOption.SO_BACKLOG, 1024);
b.group(group).channel(NioServerSocketChannel.class).handler(new LoggingHandler(LogLevel.INFO))
.childHandler(new ChannelInitializer<SocketChannel>() {
@Override
protected void initChannel(SocketChannel ch) throws Exception {
ch.pipeline().addLast(new HttpRequestDecoder(),
new HttpResponseEncoder(),
new HttpObjectAggregator(MAX_CONTENT_LENGTH),
new Http1RequestHandler());
}
});
Channel ch = b.bind(PORT).sync().channel();
return ch.closeFuture();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does ChannelFuture() do?
ChannelFuture() is a function in the netty codebase, defined in example/src/main/java/io/netty/example/http2/tiles/HttpServer.java.
Where is ChannelFuture() defined?
ChannelFuture() is defined in example/src/main/java/io/netty/example/http2/tiles/HttpServer.java at line 48.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free