Class ConsulServiceInstance

java.lang.Object
org.springframework.cloud.client.DefaultServiceInstance
org.springframework.cloud.consul.discovery.ConsulServiceInstance
All Implemented Interfaces:
org.springframework.cloud.client.ServiceInstance

public class ConsulServiceInstance extends org.springframework.cloud.client.DefaultServiceInstance
  • Constructor Details

    • ConsulServiceInstance

      public ConsulServiceInstance(com.ecwid.consul.v1.health.model.HealthService healthService, String serviceId)
    • ConsulServiceInstance

      public ConsulServiceInstance(String instanceId, String serviceId, String host, int port, boolean secure, Map<String,String> metadata, List<String> tags)
    • ConsulServiceInstance

      public ConsulServiceInstance(String instanceId, String serviceId, String host, int port, boolean secure)
    • ConsulServiceInstance

      public ConsulServiceInstance()
  • Method Details

    • getHealthService

      public com.ecwid.consul.v1.health.model.HealthService getHealthService()
    • setHealthService

      public void setHealthService(com.ecwid.consul.v1.health.model.HealthService healthService)
    • getTags

      public List<String> getTags()
    • toString

      public String toString()
      Overrides:
      toString in class org.springframework.cloud.client.DefaultServiceInstance