public final class DefaultEventLoopGroupFactory extends Object implements ToCopyableBuilder<DefaultEventLoopGroupFactory.Builder,DefaultEventLoopGroupFactory>, EventLoopGroupFactory
EventLoopGroup instances. Will choose the optimal implementation of
EventLoopGroup per the platform (i.e. if on Linux then EpollEventLoopGroup will be used).| Modifier and Type | Class and Description |
|---|---|
static interface |
DefaultEventLoopGroupFactory.Builder
A builder for
DefaultEventLoopGroupFactory. |
| Modifier and Type | Method and Description |
|---|---|
static DefaultEventLoopGroupFactory.Builder |
builder() |
io.netty.channel.EventLoopGroup |
create()
Create a new
EventLoopGroup using the current configuration of the factory. |
Optional<Integer> |
numberOfThreads() |
Optional<ThreadFactory> |
threadFactory() |
DefaultEventLoopGroupFactory.Builder |
toBuilder() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcopypublic Optional<Integer> numberOfThreads()
EventLoopGroup or an empty Optional if not set.public Optional<ThreadFactory> threadFactory()
ThreadFactory or an empty Optional if not set.public io.netty.channel.EventLoopGroup create()
EventLoopGroupFactoryEventLoopGroup using the current configuration of the factory. Will use the optimal
implementation per the platform.create in interface EventLoopGroupFactorypublic DefaultEventLoopGroupFactory.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<DefaultEventLoopGroupFactory.Builder,DefaultEventLoopGroupFactory>public static DefaultEventLoopGroupFactory.Builder builder()
DefaultEventLoopGroupFactory.Copyright © 2017. All rights reserved.