public class ConsulServiceInstance extends Object implements ServiceInstance
ServiceInstance
for Consul.ServiceInstance.Builder
GROUP, 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 ServiceInstance
HealthStatus
of the instancepublic HealthEntry getHealthEntry()
HealthEntry
public String getId()
getId
in interface ServiceInstance
public Optional<String> getInstanceId()
getInstanceId
in interface ServiceInstance
public URI getURI()
getURI
in interface ServiceInstance
public ConvertibleValues<String> getMetadata()
getMetadata
in interface ServiceInstance