public final class CommonPools extends Object
EventLoopGroups which is used when not overridden.| Modifier and Type | Method and Description |
|---|---|
static ScheduledExecutorService |
blockingTaskExecutor()
Returns the default common blocking task
ScheduledExecutorService which is used for
potentially long-running tasks which may block I/O threads. |
static io.netty.channel.EventLoopGroup |
workerGroup()
Returns the common worker
EventLoopGroup which is used when
ServerBuilder.workerGroup(EventLoopGroup, boolean) or
ClientFactoryBuilder.workerGroup(EventLoopGroup, boolean) is not specified. |
public static ScheduledExecutorService blockingTaskExecutor()
ScheduledExecutorService which is used for
potentially long-running tasks which may block I/O threads.public static io.netty.channel.EventLoopGroup workerGroup()
EventLoopGroup which is used when
ServerBuilder.workerGroup(EventLoopGroup, boolean) or
ClientFactoryBuilder.workerGroup(EventLoopGroup, boolean) is not specified.Copyright © 2020 LeanCloud. All rights reserved.