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()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
equals, getClass, hashCode, notify, notifyAll, 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()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<DefaultEventLoopGroupFactory.Builder,DefaultEventLoopGroupFactory>public static DefaultEventLoopGroupFactory.Builder builder()
DefaultEventLoopGroupFactory.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.