I was reading Oracles documentation on ThreadPoolExecutor and in particular about the queuing in case there are more requests than Threads available. However I did not find out what the default settings are.
To instantiate the Executor the only thing I do is:
executor = Executors.newFixedThreadPool(numberOfThreads);
where executor is from java.util.concurrent.ExecutorService and Executor is the one given by java.util.concurrent.Executors.
From there on the only line where the executor appears again is in:
executor.execute(worker);
So as you see, I never set any property about the queue type or size the executor is using.
What I want to know is which of the strategies described in the documentation I linked is being used.
With the implementation as I've shown: Am I using an unbounded queue? Is it bounded? If so what's the default size?