rschuetz commented on issue #3395:
URL: 
https://github.com/apache/logging-log4j2/issues/3395#issuecomment-2596105889

   @vy: Not sure what you mean. By default, `j.u.c.ArrayBlockingQueue#poll` 
does not block, i.e. as long as the queue is empty (initially or if all cached 
elements are in use) `#poll` returns null and `QueueingRecyclerFactory` creates 
a new buffer. I.e. the total number of simultaneously active buffers is not 
limited. The number will only go down to the configured capacity again when all 
buffers have been released.
   
   Yes, I could introduce a custom queue instead, that blocks on `#poll` to 
simulate a pool - but how should it know how to create a new buffer then? It 
has no reference to the supplier.


-- 
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: notifications-unsubscr...@logging.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to