essobedo commented on code in PR #9433:
URL: https://github.com/apache/camel/pull/9433#discussion_r1119008145
##########
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:
Yes that could be interesting in a place where we could create a new
exception very frequently as building a stack trace is very slow
--
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]