orpiske commented on code in PR #9433:
URL: https://github.com/apache/camel/pull/9433#discussion_r1119002959
##########
core/camel-support/src/main/java/org/apache/camel/support/cache/DefaultProducerCache.java:
##########
@@ -54,6 +54,10 @@
public class DefaultProducerCache extends ServiceSupport implements
ProducerCache {
private static final Logger LOG =
LoggerFactory.getLogger(DefaultProducerCache.class);
+ private static final RejectedExecutionException
REJECTED_EXECUTION_EXCEPTION
+ = new RejectedExecutionException("CamelContext is stopped");
+ private volatile boolean filledStackTrace;
Review Comment:
I'm rolling back on this one for now (it's a minor thing - not important for
the hot path), but I liked the idea. In the future, we should explore this in
other areas of the code base.
--
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]