Looking at Executors I don't see a creation method for one with min and max threads. I've used CachedThreadPool which will grow without bounds and destroy threads after some idle time. I guess you could look at the various pool implementations and write your own with min and max.
What's wrong with the variations that are there? A fixed pool has a max; some of them might go idle but how bad is that when they're not running?
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
You might try ThreadPoolExecutor, which allows you to specify a minimum and maximum number of threads. I can't really see why you might want more than that, but if you do, you could probably extend ThreadPoolExecutor to add more complex behavior, changing the min and max values in response to changing circumtances.
"I'm not back." - Bill Harding, Twister
I'm thinking about a new battle cry. Maybe "Not in the face! Not in the face!" Any thoughts tiny ad?
a bit of art, as a gift, that will fit in a stocking