gemmellr commented on pull request #44:
URL: https://github.com/apache/qpid-jms/pull/44#issuecomment-953635551


   I dont believe it will ever work the way you want with a simple queue of any 
size. You have to add hoops to manipulate it into behaving that way. E.g by 
pretending the queue is full when you want it to create threads, and inserting 
into the queue (directly or via the rejected execution handler) when you dont 
want more threads.
   
   The docs for ThreadPoolExecutor covers the built in behaviour: 
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/concurrent/ThreadPoolExecutor.html


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to