public static interface SdkEventLoopGroup.Builder
SdkEventLoopGroup.
All implementations of this interface are mutable and not thread safe.
| Modifier and Type | Method and Description |
|---|---|
SdkEventLoopGroup |
build() |
SdkEventLoopGroup.Builder |
channelFactory(io.netty.channel.ChannelFactory<? extends io.netty.channel.Channel> channelFactory)
ChannelFactory to create socket channels used by the EventLoopGroup. |
SdkEventLoopGroup.Builder |
datagramChannelFactory(io.netty.channel.ChannelFactory<? extends io.netty.channel.socket.DatagramChannel> datagramChannelFactory)
ChannelFactory to create datagram channels used by the EventLoopGroup. |
SdkEventLoopGroup.Builder |
numberOfThreads(Integer numberOfThreads)
Number of threads to use for the
EventLoopGroup. |
SdkEventLoopGroup.Builder |
threadFactory(ThreadFactory threadFactory)
ThreadFactory to create threads used by the EventLoopGroup. |
SdkEventLoopGroup.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.SdkEventLoopGroup.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.SdkEventLoopGroup.Builder channelFactory(io.netty.channel.ChannelFactory<? extends io.netty.channel.Channel> channelFactory)
ChannelFactory to create socket channels used by the EventLoopGroup. If not set,
NioSocketChannel is used.channelFactory - ChannelFactory to use.SdkEventLoopGroup.Builder datagramChannelFactory(io.netty.channel.ChannelFactory<? extends io.netty.channel.socket.DatagramChannel> datagramChannelFactory)
ChannelFactory to create datagram channels used by the EventLoopGroup. If not set,
NioDatagramChannel is used.datagramChannelFactory - ChannelFactory to use.SdkEventLoopGroup build()
Copyright © 2023. All rights reserved.