spring-framework / org.springframework.scheduling.concurrent / ThreadPoolExecutorFactoryBean / setQueueCapacity

setQueueCapacity

open fun setQueueCapacity(queueCapacity: Int): Unit

Set the capacity for the ThreadPoolExecutor's BlockingQueue. Default is Integer.MAX_VALUE.

Any positive value will lead to a LinkedBlockingQueue instance; any other value will lead to a SynchronousQueue instance.

See Also
java.util.concurrent.LinkedBlockingQueuejava.util.concurrent.SynchronousQueue