public interface ServiceInstance extends Serializable
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object another) |
String |
getHost()
The hostname of the registered service instance.
|
String |
getId()
The id of the registered service instance.
|
Map<String,String> |
getMetadata()
The key / value pair metadata associated with the service instance.
|
Integer |
getPort()
The port of the registered service instance.
|
String |
getServiceName()
The name of service that current instance belongs to.
|
int |
hashCode() |
default boolean |
isEnabled()
The enable status of the registered service instance.
|
default boolean |
isHealthy()
The registered service instance is health or not.
|
String getId()
String getServiceName()
String getHost()
Integer getPort()
default boolean isEnabled()
true, indicates current instance is enabled, or disable, the client should remove this one.
The default value is truedefault boolean isHealthy()
true, indicates current instance is enabled, or disable, the client may ignore this one.
The default value is trueMap<String,String> getMetadata()
Mapint hashCode()
boolean equals(Object another)
equals in class Objectanother - another ServiceInstancetrue, or falseCopyright © 2011–2019 The Apache Software Foundation. All rights reserved.