类 ConsulHealthCheckHandler

java.lang.Object
top.codef.microservice.components.ConsulHealthCheckHandler
所有已实现的接口:
org.springframework.beans.factory.InitializingBean, HealthCheckHandler

public class ConsulHealthCheckHandler extends Object implements HealthCheckHandler, org.springframework.beans.factory.InitializingBean
作者:
徐晓东
  • 构造器详细资料

    • ConsulHealthCheckHandler

      public ConsulHealthCheckHandler(com.ecwid.consul.v1.ConsulClient consulClient)
      参数:
      consulClient -
  • 方法详细资料

    • isHealthy

      public boolean isHealthy(org.springframework.cloud.client.ServiceInstance serviceInstance, ServiceCheck serviceCheck)
      从接口复制的说明: HealthCheckHandler
      健康检查处理
      指定者:
      isHealthy 在接口中 HealthCheckHandler
      返回:
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      指定者:
      afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBean
      抛出:
      Exception