Package org.springframework.boot.actuate.health

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


    @Bean
    @ConditionalOnMissingBean(name = "redisHealthIndicator")
    public HealthIndicator redisHealthIndicator() {
      if (this.redisConnectionFactories.size() == 1) {
        return new RedisHealthIndicator(this.redisConnectionFactories.values()
            .iterator().next());
      }

      CompositeHealthIndicator composite = new CompositeHealthIndicator(
          this.healthAggregator);
      for (Map.Entry<String, RedisConnectionFactory> entry : this.redisConnectionFactories
          .entrySet()) {
        composite.addHealthIndicator(entry.getKey(), new RedisHealthIndicator(
            entry.getValue()));
      }
      return composite;
    }
View Full Code Here

TOP

Related Classes of org.springframework.boot.actuate.health.RedisHealthIndicator

Copyright © 2018 www.massapicom. 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.