public class ConsulServiceInstance extends Object implements ServiceInstance
ServiceInstance for Consul.ServiceInstance.BuilderGROUP, REGION, ZONE| Constructor and Description |
|---|
ConsulServiceInstance(HealthEntry healthEntry,
String scheme)
Constructs a
ConsulServiceInstance for the given HealthEntry and scheme. |
| Modifier and Type | Method and Description |
|---|---|
HealthEntry |
getHealthEntry() |
HealthStatus |
getHealthStatus() |
String |
getId() |
Optional<String> |
getInstanceId() |
ConvertibleValues<String> |
getMetadata() |
URI |
getURI() |
public ConsulServiceInstance(@Nonnull HealthEntry healthEntry, @Nullable String scheme)
ConsulServiceInstance for the given HealthEntry and scheme.healthEntry - The health entryscheme - The schemepublic HealthStatus getHealthStatus()
getHealthStatus in interface ServiceInstanceHealthStatus of the instancepublic HealthEntry getHealthEntry()
HealthEntrypublic String getId()
getId in interface ServiceInstancepublic Optional<String> getInstanceId()
getInstanceId in interface ServiceInstancepublic URI getURI()
getURI in interface ServiceInstancepublic ConvertibleValues<String> getMetadata()
getMetadata in interface ServiceInstance