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
ConstructorsConstructorDescriptionConsulServiceInstance(@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 TypeMethodDescriptionorg.springframework.cloud.consul.model.http.health.HealthServicegetTags()voidsetHealthService(org.springframework.cloud.consul.model.http.health.HealthService healthService) toString()Methods inherited from class org.springframework.cloud.client.DefaultServiceInstance
equals, getHost, getInstanceId, getMetadata, getPort, getServiceId, getUri, hashCode, isSecure, setHost, setInstanceId, setPort, setSecure, setServiceId, setUriMethods 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
-
ConsulServiceInstance
-
-
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
-
toString
- Overrides:
toStringin classorg.springframework.cloud.client.DefaultServiceInstance
-