Package com.linecorp.armeria.common
Class CommonPools
java.lang.Object
com.linecorp.armeria.common.CommonPools
Provides the common shared thread pools and
EventLoopGroups which is used when not overridden.-
Method Summary
Modifier and TypeMethodDescriptionstatic ScheduledExecutorServiceReturns the default common blocking taskScheduledExecutorServicewhich is used for potentially long-running tasks which may block I/O threads.static EventLoopGroupReturns the common workerEventLoopGroupwhich is used whenServerBuilder.workerGroup(EventLoopGroup, boolean)orClientFactoryBuilder.workerGroup(EventLoopGroup, boolean)is not specified.
-
Method Details
-
blockingTaskExecutor
Returns the default common blocking taskScheduledExecutorServicewhich is used for potentially long-running tasks which may block I/O threads. -
workerGroup
Returns the common workerEventLoopGroupwhich is used whenServerBuilder.workerGroup(EventLoopGroup, boolean)orClientFactoryBuilder.workerGroup(EventLoopGroup, boolean)is not specified.
-