Examples of RabbitHealthIndicator


Examples of org.springframework.boot.actuate.health.RabbitHealthIndicator

    @Bean
    @ConditionalOnMissingBean(name = "rabbitHealthIndicator")
    public HealthIndicator rabbitHealthIndicator() {
      if (this.rabbitTemplates.size() == 1) {
        return new RabbitHealthIndicator(this.rabbitTemplates.values().iterator()
            .next());
      }

      CompositeHealthIndicator composite = new CompositeHealthIndicator(
          this.healthAggregator);
      for (Map.Entry<String, RabbitTemplate> entry : this.rabbitTemplates
          .entrySet()) {
        composite.addHealthIndicator(entry.getKey(), new RabbitHealthIndicator(
            entry.getValue()));
      }
      return composite;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.