/** * If the passed executor is not {@code null} , the configured {@link RequestHandler} will be invoked in the passed * {@link EventExecutorGroup} * * @param eventExecutorGroup The {@link EventExecutorGroup} in which to invoke the configured * {@link RequestHandler}. Can be {@code null}, in which case, the * {@link RequestHandler} is invoked in the channel's eventloop. * * @return This builder. */ @Override public HttpServerBuilder<I, O> withEventExecutorGroup(EventExecutorGroup eventExecutorGroup) { return super.withEventExecutorGroup(eventExecutorGroup); }
/** * If the passed executor is not {@code null} , the configured {@link RequestHandler} will be invoked in the passed * {@link EventExecutorGroup} * * @param eventExecutorGroup The {@link EventExecutorGroup} in which to invoke the configured * {@link RequestHandler}. Can be {@code null}, in which case, the * {@link RequestHandler} is invoked in the channel's eventloop. * * @return This builder. */ @Override public HttpServerBuilder<I, O> withEventExecutorGroup(EventExecutorGroup eventExecutorGroup) { return super.withEventExecutorGroup(eventExecutorGroup); }
/** * Same as calling {@link #withEventExecutorGroup(EventExecutorGroup)} with {@link DefaultEventExecutorGroup} using * the passed {@code factory} * * @param threadCount Number of threads to use for request processing. * @param factory Thread factory to use for the {@link DefaultEventExecutorGroup} * * @return This builder. */ public HttpServerBuilder<I, O> withRequestProcessingThreads(int threadCount, ThreadFactory factory) { return super.withEventExecutorGroup(new DefaultEventExecutorGroup(threadCount, factory)); }
/** * Same as calling {@link #withEventExecutorGroup(EventExecutorGroup)} with {@link DefaultEventExecutorGroup} using * the passed {@code factory} * * @param threadCount Number of threads to use for request processing. * @param factory Thread factory to use for the {@link DefaultEventExecutorGroup} * * @return This builder. */ public HttpServerBuilder<I, O> withRequestProcessingThreads(int threadCount, ThreadFactory factory) { return super.withEventExecutorGroup(new DefaultEventExecutorGroup(threadCount, factory)); }
/** * Same as calling {@link #withRequestProcessingThreads(int, ThreadFactory)} with {@link 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"))); }
/** * Same as calling {@link #withRequestProcessingThreads(int, ThreadFactory)} with {@link 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"))); }