public static interface DefaultEventLoopGroupFactory.Builder extends CopyableBuilder<DefaultEventLoopGroupFactory.Builder,DefaultEventLoopGroupFactory>
DefaultEventLoopGroupFactory.
All implementations of this interface are mutable and not thread safe.
| Modifier and Type | Method and Description |
|---|---|
DefaultEventLoopGroupFactory.Builder |
numberOfThreads(Integer numberOfThreads)
Number of threads to use for the
EventLoopGroup. |
DefaultEventLoopGroupFactory.Builder |
threadFactory(ThreadFactory threadFactory)
ThreadFactory to create threads used by the EventLoopGroup. |
copyapply, buildDefaultEventLoopGroupFactory.Builder numberOfThreads(Integer numberOfThreads)
EventLoopGroup. If not set, the default
Netty thread count is used (which is double the number of available processors unless the io.netty.eventLoopThreads
system property is set.numberOfThreads - Number of threads to use.DefaultEventLoopGroupFactory.Builder threadFactory(ThreadFactory threadFactory)
ThreadFactory to create threads used by the EventLoopGroup. If not set,
a generic thread factory is used.threadFactory - ThreadFactory to use.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.