public class ConsulServiceInstance extends java.lang.Object implements ServiceInstance
ServiceInstance for Consul.ServiceInstance.BuilderGROUP, REGION, ZONE| Constructor and Description |
|---|
ConsulServiceInstance(HealthEntry healthEntry,
java.lang.String scheme)
Constructs a
ConsulServiceInstance for the given HealthEntry and scheme. |
| Modifier and Type | Method and Description |
|---|---|
HealthEntry |
getHealthEntry() |
HealthStatus |
getHealthStatus() |
java.lang.String |
getId() |
java.util.Optional<java.lang.String> |
getInstanceId() |
ConvertibleValues<java.lang.String> |
getMetadata() |
java.net.URI |
getURI() |
public ConsulServiceInstance(@NonNull
HealthEntry healthEntry,
@Nullable
java.lang.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 java.lang.String getId()
getId in interface ServiceInstancepublic java.util.Optional<java.lang.String> getInstanceId()
getInstanceId in interface ServiceInstancepublic java.net.URI getURI()
getURI in interface ServiceInstancepublic ConvertibleValues<java.lang.String> getMetadata()
getMetadata in interface ServiceInstance