Claus Ibsen created CAMEL-17140:
-----------------------------------
Summary: camel-core - Make it easier to get a route health-check
by route id
Key: CAMEL-17140
URL: https://issues.apache.org/jira/browse/CAMEL-17140
Project: Camel
Issue Type: Improvement
Components: camel-core
Reporter: Claus Ibsen
Assignee: Claus Ibsen
Fix For: 3.13.0
When testing or the need to lookup a route health check then we should make
this easier. The logic today is a bit cumbersome, with a stream of checks, etc.
HealthCheckRegistry hcr =
context.getExtension(HealthCheckRegistry.class);
HealthCheckRepository repo = hcr.getRepository("routes").get();
HealthCheck hc = repo.stream().findFirst().get();
--
This message was sent by Atlassian Jira
(v8.3.4#803005)