shashank created CAMEL-26104:
--------------------------------
Summary: camel-core - ThrottlingExceptionRoutePolicy: create the
half-open timer through the ExecutorServiceManager
Key: CAMEL-26104
URL: https://issues.apache.org/jira/browse/CAMEL-26104
Project: Camel
Issue Type: Improvement
Components: camel-core
Reporter: shashank
Assignee: shashank
{{ThrottlingExceptionRoutePolicy.addHalfOpenTimer}} (camel-support) creates a
new {{java.util.Timer}}, and with it a new thread, every time the circuit opens
or reopens. Scheduling the half-open check on a scheduled executor from the
{{ExecutorServiceManager}} would reuse one thread, give it a Camel thread name,
shut it down with the route policy, and let camel-test-dst run the half-open
check in virtual time (today it fires after {{halfOpenAfter}} of real time on a
thread outside the harness).
Follow-up of CAMEL-25911.
_Filed with Claude Code on behalf of allthingssecurity._
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)