Tagged articles

rejection policy

2 articles · Page 1 of 1
Java Tech Workshop
Java Tech Workshop
Aug 29, 2026 · Backend Development

When a ThreadPool Queue Is Full: How ThreadPoolExecutor Expands and Handles Rejection

The article explains the exact order in which ThreadPoolExecutor expands—core threads, queueing, non‑core threads, then rejection—illustrates the behavior with a runnable example, compares the four built‑in RejectedExecutionHandler strategies, debunks common misconceptions, and offers production‑grade configuration and monitoring best practices.

Java concurrencyThread PoolThreadPoolExecutor
0 likes · 24 min read
When a ThreadPool Queue Is Full: How ThreadPoolExecutor Expands and Handles Rejection
Dabaoshi
Dabaoshi
Aug 18, 2026 · Backend Development

Thread Pool Mechanics and Tuning: Avoid new Thread() in Production

This article explains why creating raw threads in production is costly, breaks down the seven ThreadPoolExecutor parameters, shows the exact execution flow of a submitted task, compares queue choices and Executors factories, and provides practical tuning, rejection‑policy and graceful‑shutdown guidance.

ExecutorServiceJavaThreadPoolExecutor
0 likes · 16 min read
Thread Pool Mechanics and Tuning: Avoid new Thread() in Production