Class ForumHealthIndicator

java.lang.Object
com.bytedesk.forum.config.ForumHealthIndicator
All Implemented Interfaces:
org.springframework.boot.actuate.health.HealthContributor, org.springframework.boot.actuate.health.HealthIndicator

@Component public class ForumHealthIndicator extends Object implements org.springframework.boot.actuate.health.HealthIndicator
Forum模块健康检查 监控论坛系统相关服务:数据库、Redis缓存、搜索索引、审核队列等
  • Field Details

    • moderationEnabled

      @Value("${bytedesk.forum.post-moderation.enabled:false}") private boolean moderationEnabled
    • hotTopicsCacheTtl

      @Value("${bytedesk.forum.hot-topics.cache-ttl:3600}") private int hotTopicsCacheTtl
    • searchEnabled

      @Value("${bytedesk.forum.search.enabled:true}") private boolean searchEnabled
    • dataSource

      @Autowired(required=false) private DataSource dataSource
    • redisTemplate

      @Autowired(required=false) private org.springframework.data.redis.core.RedisTemplate<String,Object> redisTemplate
  • Constructor Details

    • ForumHealthIndicator

      public ForumHealthIndicator()
  • Method Details

    • health

      public org.springframework.boot.actuate.health.Health health()
      Specified by:
      health in interface org.springframework.boot.actuate.health.HealthIndicator