use of org.apache.camel.component.hystrix.metrics.servlet.HystrixEventStreamServlet in project camel by apache.
the class HystrixMappingAutoConfiguration method servletRegistrationBean.
@Bean
ServletRegistrationBean servletRegistrationBean(HystrixMappingConfiguration config) {
ServletRegistrationBean mapping = new ServletRegistrationBean();
mapping.setServlet(new HystrixEventStreamServlet());
mapping.addUrlMappings(config.getPath());
mapping.setName(config.getServletName());
return mapping;
}
Aggregations