Examples of RxDefaultThreadFactory


Examples of io.reactivex.netty.channel.RxDefaultThreadFactory

     * @param threadCount Number of threads to use for request processing.
     *
     * @return This builder.
     */
    public HttpServerBuilder<I, O> withRequestProcessingThreads(int threadCount) {
        return super.withEventExecutorGroup(new DefaultEventExecutorGroup(threadCount, new RxDefaultThreadFactory("rx-request-processor")));
    }
View Full Code Here

Examples of io.reactivex.netty.channel.RxDefaultThreadFactory

                                                                     }
                                                                 });
                                            }
                                        })
                       .pipelineConfigurator(PipelineConfigurators.textOnlyConfigurator())
                       .withEventExecutorGroup(new DefaultEventExecutorGroup(50, new RxDefaultThreadFactory(
                               "rx-connection-processor"))) /*Uses 50 threads to process connections.*/
                       .build();
        return server;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.