public class ServiceInstancesWrap extends Object implements ServiceInstances
| 构造器和说明 |
|---|
ServiceInstancesWrap(ServiceInstances serviceInstances,
List<Instance> instances,
int totalWeight) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(Object o) |
List<Instance> |
getAllInstances() |
List<Instance> |
getInstances()
获取服务实例列表
|
Map<String,String> |
getMetadata()
获取服务元数据信息
|
String |
getNamespace()
获取名字空间
|
String |
getRevision()
获取唯一标识信息
|
String |
getService()
获取服务名
|
ServiceKey |
getServiceKey()
获取服务标识
|
int |
getTotalWeight()
获取服务实例总权重值
|
int |
hashCode() |
boolean |
isInitialized()
服务实例列表是否已经加载
|
void |
reloadTotalWeight() |
void |
setInstances(List<Instance> instances) |
String |
toString() |
public ServiceInstancesWrap(ServiceInstances serviceInstances, List<Instance> instances, int totalWeight)
public ServiceKey getServiceKey()
ServiceInstancesgetServiceKey 在接口中 ServiceInstancespublic int getTotalWeight()
ServiceInstancesgetTotalWeight 在接口中 ServiceInstancespublic void reloadTotalWeight()
public List<Instance> getInstances()
ServiceInstancesgetInstances 在接口中 ServiceInstancespublic boolean isInitialized()
ServiceInstancesisInitialized 在接口中 ServiceInstancespublic String getRevision()
ServiceInstancesgetRevision 在接口中 ServiceInstancespublic String getService()
ServicegetService 在接口中 Servicepublic String getNamespace()
ServicegetNamespace 在接口中 Servicepublic Map<String,String> getMetadata()
ServiceMetadatagetMetadata 在接口中 ServiceMetadataCopyright © 2022. All rights reserved.