Package com.bytedesk.social.config
Class SocialHealthIndicator
java.lang.Object
com.bytedesk.social.config.SocialHealthIndicator
- All Implemented Interfaces:
org.springframework.boot.actuate.health.HealthContributor,org.springframework.boot.actuate.health.HealthIndicator
@Component
public class SocialHealthIndicator
extends Object
implements org.springframework.boot.actuate.health.HealthIndicator
Social模块健康检查
监控社交功能相关服务:数据库、Redis缓存、用户关系图谱等
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.boot.actuate.health.HealthIndicator
getHealth
-
Field Details
-
maxConnections
@Value("${bytedesk.social.max-connections:5000}") private int maxConnections -
cacheEnabled
@Value("${bytedesk.social.cache.enabled:true}") private boolean cacheEnabled -
dataSource
-
redisTemplate
-
-
Constructor Details
-
SocialHealthIndicator
public SocialHealthIndicator()
-
-
Method Details
-
health
public org.springframework.boot.actuate.health.Health health()- Specified by:
healthin interfaceorg.springframework.boot.actuate.health.HealthIndicator
-