public NettyHttpService build() {
InetSocketAddress bindAddress;
if (host == null) {
bindAddress = new InetSocketAddress("localhost", port);
} else {
bindAddress = new InetSocketAddress(host, port);
}
return new NettyHttpService(serviceName, bindAddress, bossThreadPoolSize, workerThreadPoolSize,
execThreadPoolSize, execThreadKeepAliveSecs, channelConfigs, childChannelConfigs,
rejectedExecutionHandler, urlRewriter, handlers, handlerHooks, httpChunkLimit,
pipelineModifier, sslHandlerFactory, exceptionHandler);
}
}