public abstract class AbstractHealthCheck extends Object implements ServerHealthCheck, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationListener<ApplicationCompleteEvent>
| 构造器和说明 |
|---|
AbstractHealthCheck() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterPropertiesSet() |
void |
healthCheck()
Health check.
|
boolean |
isHealthStatus()
Is health status.
|
void |
onApplicationEvent(ApplicationCompleteEvent event) |
protected abstract boolean |
sendHealthCheck()
Send health check.
|
void |
setHealthStatus(boolean healthStatus)
Set health status.
|
protected abstract boolean sendHealthCheck()
public void healthCheck()
public boolean isHealthStatus()
ServerHealthCheckisHealthStatus 在接口中 ServerHealthCheckpublic void setHealthStatus(boolean healthStatus)
ServerHealthChecksetHealthStatus 在接口中 ServerHealthCheckpublic void afterPropertiesSet()
throws Exception
afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBeanExceptionpublic void onApplicationEvent(ApplicationCompleteEvent event)
onApplicationEvent 在接口中 org.springframework.context.ApplicationListener<ApplicationCompleteEvent>Copyright © 2021. All rights reserved.