public class ResourcesResponse extends Object
| 构造器和说明 |
|---|
ResourcesResponse() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addError(ServiceEventKey svcEventKey,
Throwable error)
添加错误信息
|
void |
addServiceInstances(ServiceEventKey svcEventKey,
ServiceInstances instances)
添加服务实例应答
|
void |
addServiceRule(ServiceEventKey svcEventKey,
ServiceRule rule)
添加规则应答
|
Map<ServiceEventKey,ServiceInstances> |
getAllServiceInstances()
获取所有的实例应答缓存
|
Map<ServiceEventKey,ServiceRule> |
getAllServiceRules()
获取所有的规则缓应答缓存
|
Map<ServiceEventKey,Throwable> |
getErrors()
返回所有的错误
|
ServiceInstances |
getServiceInstances(ServiceEventKey svcEventKey)
获取服务实例应答对象
|
ServiceRule |
getServiceRule(ServiceEventKey svcEventKey)
获取规则应答对象
|
public void addServiceInstances(ServiceEventKey svcEventKey, ServiceInstances instances)
svcEventKey - 服务标识instances - 实例列表public ServiceInstances getServiceInstances(ServiceEventKey svcEventKey)
svcEventKey - 服务标识public Map<ServiceEventKey,ServiceInstances> getAllServiceInstances()
public Map<ServiceEventKey,ServiceRule> getAllServiceRules()
public void addServiceRule(ServiceEventKey svcEventKey, ServiceRule rule)
svcEventKey - 服务标识rule - 规则数据public ServiceRule getServiceRule(ServiceEventKey svcEventKey)
svcEventKey - 服务标识public void addError(ServiceEventKey svcEventKey, Throwable error)
svcEventKey - 服务标识error - 异常信息public Map<ServiceEventKey,Throwable> getErrors()
Copyright © 2021. All rights reserved.