public void start(ServerChannelFactory serverChannelFactory) { bootstrap = new ServerBootstrap(serverChannelFactory); bootstrap.setOptions(nettyServerConfig.getBootstrapOptions()); bootstrap.setPipelineFactory(pipelineFactory); SocketAddress address = local ? new LocalAddress("mandrel") : new InetSocketAddress(requestedPort); serverChannel = bootstrap.bind(address); }
public void setServerChannelFactory(ServerChannelFactory channelFactory) { this.serverChannelFactory = channelFactory; }