final case class ThreadPoolConfig(allowCorePoolTimeout: Boolean = ThreadPoolConfig.defaultAllowCoreThreadTimeout, corePoolSize: Int = ThreadPoolConfig.defaultCorePoolSize, maxPoolSize: Int = ThreadPoolConfig.defaultMaxPoolSize, threadTimeout: Duration = ThreadPoolConfig.defaultTimeout, queueFactory: QueueFactory = ThreadPoolConfig.linkedBlockingQueue(), rejectionPolicy: RejectedExecutionHandler = ThreadPoolConfig.defaultRejectionPolicy) extends ExecutorServiceFactoryProvider with Product with Serializable
Ordering
- Alphabetic
- By Inheritance
Inherited
- ThreadPoolConfig
- Serializable
- Product
- Equals
- ExecutorServiceFactoryProvider
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new ThreadPoolConfig(allowCorePoolTimeout: Boolean = ThreadPoolConfig.defaultAllowCoreThreadTimeout, corePoolSize: Int = ThreadPoolConfig.defaultCorePoolSize, maxPoolSize: Int = ThreadPoolConfig.defaultMaxPoolSize, threadTimeout: Duration = ThreadPoolConfig.defaultTimeout, queueFactory: QueueFactory = ThreadPoolConfig.linkedBlockingQueue(), rejectionPolicy: RejectedExecutionHandler = ThreadPoolConfig.defaultRejectionPolicy)
Type Members
- class ThreadPoolExecutorServiceFactory extends ExecutorServiceFactory
Value Members
- val allowCorePoolTimeout: Boolean
- val corePoolSize: Int
- def createExecutorServiceFactory(id: String, threadFactory: ThreadFactory): ExecutorServiceFactory
- Definition Classes
- → ExecutorServiceFactoryProvider
- val maxPoolSize: Int
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val queueFactory: QueueFactory
- val rejectionPolicy: RejectedExecutionHandler
- val threadTimeout: Duration
A small configuration DSL to create ThreadPoolExecutors that can be provided as an ExecutorServiceFactoryProvider to Dispatcher