Hi, camel friends

 I have a few questions regarding camel hystrix java dsl.

I am using hystrix in a route:


from("direct:a").routeId("a_route")
.hystrix()
//question: how to print out or log configurations for this particular
hystrix
.to("bean:abean?method=execute")
.onFallback()
.to("bean:bBean?method=execute")
//question: how to check if circuite break is open. If it's open, I would
like to log a message.
.end()


1) How can I pass camel hystrix global settings to the hystrix. I've
configured the following entries in my application.yml file, but the
hystrix didn't seem to pick up the configs.

camel:
  hystrix:
    execution-timeout-in-milliseconds: 0
    circuit-breaker-request-volume-threshold: 5
    circuit-breaker-error-threshold-percentage: 50
    circuit-breaker-sleep-window-in-milliseconds: 10000
    metrics-rolling-percentile-window-in-milliseconds: 20000
    metrics-rolling-percentile-window-buckets: 2

2) In above route, how can I print out a particular hystrix's configs

3) In above route, how do I know if a circuit break is open.


Thanks

Reply via email to