Interface SdkEventLoopGroup.Builder
-
- Enclosing class:
- SdkEventLoopGroup
public static interface SdkEventLoopGroup.Builder
A builder forSdkEventLoopGroup
.All implementations of this interface are mutable and not thread safe.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SdkEventLoopGroup
build()
SdkEventLoopGroup.Builder
channelFactory(io.netty.channel.ChannelFactory<? extends io.netty.channel.Channel> channelFactory)
ChannelFactory
to create socket channels used by theEventLoopGroup
.SdkEventLoopGroup.Builder
datagramChannelFactory(io.netty.channel.ChannelFactory<? extends io.netty.channel.socket.DatagramChannel> datagramChannelFactory)
ChannelFactory
to create datagram channels used by theEventLoopGroup
.SdkEventLoopGroup.Builder
numberOfThreads(Integer numberOfThreads)
Number of threads to use for theEventLoopGroup
.SdkEventLoopGroup.Builder
threadFactory(ThreadFactory threadFactory)
ThreadFactory
to create threads used by theEventLoopGroup
.
-
-
-
Method Detail
-
numberOfThreads
SdkEventLoopGroup.Builder numberOfThreads(Integer numberOfThreads)
Number of threads to use for theEventLoopGroup
. 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.- Parameters:
numberOfThreads
- Number of threads to use.- Returns:
- This builder for method chaining.
-
threadFactory
SdkEventLoopGroup.Builder threadFactory(ThreadFactory threadFactory)
ThreadFactory
to create threads used by theEventLoopGroup
. If not set, a generic thread factory is used.- Parameters:
threadFactory
- ThreadFactory to use.- Returns:
- This builder for method chaining.
-
channelFactory
SdkEventLoopGroup.Builder channelFactory(io.netty.channel.ChannelFactory<? extends io.netty.channel.Channel> channelFactory)
ChannelFactory
to create socket channels used by theEventLoopGroup
. If not set, NioSocketChannel is used.- Parameters:
channelFactory
- ChannelFactory to use.- Returns:
- This builder for method chaining.
-
datagramChannelFactory
SdkEventLoopGroup.Builder datagramChannelFactory(io.netty.channel.ChannelFactory<? extends io.netty.channel.socket.DatagramChannel> datagramChannelFactory)
ChannelFactory
to create datagram channels used by theEventLoopGroup
. If not set, NioDatagramChannel is used.- Parameters:
datagramChannelFactory
- ChannelFactory to use.- Returns:
- This builder for method chaining.
-
build
SdkEventLoopGroup build()
-
-