Package com.linecorp.armeria.common
Class CommonPools
- java.lang.Object
-
- com.linecorp.armeria.common.CommonPools
-
public final class CommonPools extends Object
Provides the common shared thread pools andEventLoopGroup
s which is used when not overridden.
-
-
Method Summary
Modifier and Type Method Description static ScheduledExecutorService
blockingTaskExecutor()
Returns the default common blocking taskScheduledExecutorService
which is used for potentially long-running tasks which may block I/O threads.static EventLoopGroup
workerGroup()
Returns the common workerEventLoopGroup
which is used whenServerBuilder.workerGroup(EventLoopGroup, boolean)
orClientFactoryBuilder.workerGroup(EventLoopGroup, boolean)
is not specified.
-
-
-
Method Detail
-
blockingTaskExecutor
public static ScheduledExecutorService blockingTaskExecutor()
Returns the default common blocking taskScheduledExecutorService
which is used for potentially long-running tasks which may block I/O threads.
-
workerGroup
public static EventLoopGroup workerGroup()
Returns the common workerEventLoopGroup
which is used whenServerBuilder.workerGroup(EventLoopGroup, boolean)
orClientFactoryBuilder.workerGroup(EventLoopGroup, boolean)
is not specified.
-
-