Package netflix.karyon.transport.AbstractServerModule

Examples of netflix.karyon.transport.AbstractServerModule.ServerConfig


        }
    }

    @Inject
    public void setInjector(Injector injector) {
        ServerConfig config = injector.getInstance(serverConfigKey);

        ConnectionHandler<I, O> connectionHandler = injector.getInstance(connectionHandlerKey);

        ServerBuilder<I, O> builder = RxNetty.newTcpServerBuilder(config.getPort(), connectionHandler);

        if (injector.getExistingBinding(pipelineConfiguratorKey) != null) {
            builder.appendPipelineConfigurator(injector.getInstance(pipelineConfiguratorKey));
        }
View Full Code Here

TOP

Related Classes of netflix.karyon.transport.AbstractServerModule.ServerConfig

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.