Package org.apache.pekko.dispatch
Class ThreadPoolConfigBuilder
java.lang.Object
org.apache.pekko.dispatch.ThreadPoolConfigBuilder
- All Implemented Interfaces:
Serializable,scala.Equals,scala.Product
A DSL to configure and create a MessageDispatcher with a ThreadPoolExecutor
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ThreadPoolConfigBuilderapply(ThreadPoolConfig config) booleanconfig()configure(scala.collection.immutable.Seq<scala.Option<scala.Function1<ThreadPoolConfigBuilder, ThreadPoolConfigBuilder>>> fs) copy(ThreadPoolConfig config) booleaninthashCode()isVirtualized(boolean isVirtualized) intproductElement(int x$1) productElementName(int x$1) scala.collection.Iterator<Object>setAllowCoreThreadTimeout(boolean allow) setCorePoolSize(int size) setCorePoolSizeFromFactor(int min, double multiplier, int max) setFixedPoolSize(int size) setKeepAliveTime(scala.concurrent.duration.Duration time) setKeepAliveTimeInMillis(long time) setMaxPoolSize(int size) setMaxPoolSizeFromFactor(int min, double multiplier, int max) setQueueFactory(scala.Function0<BlockingQueue<Runnable>> newQueueFactory) toString()static scala.Option<ThreadPoolConfig>withNewThreadPoolWithArrayBlockingQueueWithCapacityAndFairness(int capacity, boolean fair) withNewThreadPoolWithCustomBlockingQueue(scala.Function0<BlockingQueue<Runnable>> newQueueFactory) withNewThreadPoolWithLinkedBlockingQueueWithCapacity(int capacity) withNewThreadPoolWithSynchronousQueueWithFairness(boolean fair) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface scala.Product
productElementNames
-
Constructor Details
-
ThreadPoolConfigBuilder
-
-
Method Details
-
apply
-
unapply
-
config
-
withNewThreadPoolWithCustomBlockingQueue
public ThreadPoolConfigBuilder withNewThreadPoolWithCustomBlockingQueue(scala.Function0<BlockingQueue<Runnable>> newQueueFactory) -
withNewThreadPoolWithCustomBlockingQueue
public ThreadPoolConfigBuilder withNewThreadPoolWithCustomBlockingQueue(BlockingQueue<Runnable> queue) -
withNewThreadPoolWithLinkedBlockingQueueWithUnboundedCapacity
-
withNewThreadPoolWithLinkedBlockingQueueWithCapacity
-
withNewThreadPoolWithSynchronousQueueWithFairness
-
withNewThreadPoolWithArrayBlockingQueueWithCapacityAndFairness
public ThreadPoolConfigBuilder withNewThreadPoolWithArrayBlockingQueueWithCapacityAndFairness(int capacity, boolean fair) -
setFixedPoolSize
-
setCorePoolSize
-
setMaxPoolSize
-
setCorePoolSizeFromFactor
-
setMaxPoolSizeFromFactor
-
setKeepAliveTimeInMillis
-
setKeepAliveTime
-
setAllowCoreThreadTimeout
-
setQueueFactory
public ThreadPoolConfigBuilder setQueueFactory(scala.Function0<BlockingQueue<Runnable>> newQueueFactory) -
isVirtualized
-
configure
public ThreadPoolConfigBuilder configure(scala.collection.immutable.Seq<scala.Option<scala.Function1<ThreadPoolConfigBuilder, ThreadPoolConfigBuilder>>> fs) -
copy
-
copy$default$1
-
productPrefix
- Specified by:
productPrefixin interfacescala.Product
-
productArity
public int productArity()- Specified by:
productArityin interfacescala.Product
-
productElement
- Specified by:
productElementin interfacescala.Product
-
productIterator
- Specified by:
productIteratorin interfacescala.Product
-
canEqual
- Specified by:
canEqualin interfacescala.Equals
-
productElementName
- Specified by:
productElementNamein interfacescala.Product
-
hashCode
public int hashCode() -
toString
-
equals
-