public class ConsulServiceInstance
extends java.lang.Object
implements io.micronaut.discovery.ServiceInstance
ServiceInstance for Consul.| 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() |
io.micronaut.health.HealthStatus |
getHealthStatus() |
java.lang.String |
getId() |
java.util.Optional<java.lang.String> |
getInstanceId() |
io.micronaut.core.convert.value.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 io.micronaut.health.HealthStatus getHealthStatus()
getHealthStatus in interface io.micronaut.discovery.ServiceInstancepublic HealthEntry getHealthEntry()
HealthEntrypublic java.lang.String getId()
getId in interface io.micronaut.discovery.ServiceInstancepublic java.util.Optional<java.lang.String> getInstanceId()
getInstanceId in interface io.micronaut.discovery.ServiceInstancepublic java.net.URI getURI()
getURI in interface io.micronaut.discovery.ServiceInstancepublic io.micronaut.core.convert.value.ConvertibleValues<java.lang.String> getMetadata()
getMetadata in interface io.micronaut.discovery.ServiceInstance