![]() From https://docs.oracle.com/javase/7/docs/api/java/util/concurrent/ThreadPoolExecutor.html: When a new task is submitted in method execute(java.lang.Runnable), and fewer than corePoolSize threads are running, a new thread is created to handle the request, even if other worker threads are idle. If there are more than corePoolSize but less than maximumPoolSize threads running, a new thread will be created only if the queue is full. Since we utilize an unbounded queue, we'll never hit the condition that the queue is full, so the pool will never grow past corePoolSize. Given that, explicitly state that our max is 1 thread. This should be a noop operationally. Thanks to https://github.com/dropwizard/dropwizard/pull/834 for building in warnings to help us find this. |
||
---|---|---|
.. | ||
config | ||
protobuf | ||
src | ||
assembly.xml | ||
pom.xml |