public class ServiceRuleByProto extends Object implements ServiceRule, RegistryCacheValue
| 构造器和说明 |
|---|
ServiceRuleByProto() |
ServiceRuleByProto(com.google.protobuf.Message ruleValue,
String revision,
boolean loadFromFile,
ServiceEventKey.EventType eventType) |
| 限定符和类型 | 方法和说明 |
|---|---|
ServiceEventKey.EventType |
getEventType()
缓存对象类型
|
String |
getRevision()
获取唯一标识信息
|
Object |
getRule()
获取具体的规则值
|
boolean |
isInitialized()
服务实例列表是否已经加载
|
boolean |
isLoadedFromFile()
判断是否从文件中加载
|
String |
toString() |
public ServiceRuleByProto(com.google.protobuf.Message ruleValue,
String revision,
boolean loadFromFile,
ServiceEventKey.EventType eventType)
public ServiceRuleByProto()
public Object getRule()
ServiceRulegetRule 在接口中 ServiceRulepublic String getRevision()
ServiceRulegetRevision 在接口中 RegistryCacheValuegetRevision 在接口中 ServiceRulepublic boolean isLoadedFromFile()
RegistryCacheValueisLoadedFromFile 在接口中 RegistryCacheValuepublic ServiceEventKey.EventType getEventType()
RegistryCacheValuegetEventType 在接口中 RegistryCacheValuepublic boolean isInitialized()
ServiceRuleisInitialized 在接口中 RegistryCacheValueisInitialized 在接口中 ServiceRuleCopyright © 2022. All rights reserved.