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 Summary

    Constructors
    Constructor
    Description
    ConsulServiceInstance(@Nullable String instanceId, String serviceId, String host, int port, boolean secure)
     
    ConsulServiceInstance(@Nullable String instanceId, String serviceId, String host, int port, boolean secure, Map<String,String> metadata, List<String> tags)
     
    ConsulServiceInstance(org.springframework.cloud.consul.model.http.health.HealthService healthService, String serviceId)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.cloud.consul.model.http.health.HealthService
     
     
    void
    setHealthService(org.springframework.cloud.consul.model.http.health.HealthService healthService)
     
     

    Methods inherited from class org.springframework.cloud.client.DefaultServiceInstance

    equals, getHost, getInstanceId, getMetadata, getPort, getServiceId, getUri, hashCode, isSecure, setHost, setInstanceId, setPort, setSecure, setServiceId, setUri

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.springframework.cloud.client.ServiceInstance

    getScheme
  • Constructor Details

    • ConsulServiceInstance

      public ConsulServiceInstance(org.springframework.cloud.consul.model.http.health.HealthService healthService, String serviceId)
    • ConsulServiceInstance

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

      public ConsulServiceInstance(@Nullable String instanceId, String serviceId, String host, int port, boolean secure)
  • Method Details

    • getHealthService

      public org.springframework.cloud.consul.model.http.health.HealthService getHealthService()
    • setHealthService

      public void setHealthService(org.springframework.cloud.consul.model.http.health.HealthService healthService)
    • getTags

      public List<String> getTags()
    • toString

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