public class ServiceRuleByProto extends Object implements ServiceRule, RegistryCacheValue
| Modifier and Type | Field and Description |
|---|---|
static ServiceRuleByProto |
EMPTY_SERVICE_RULE |
| Constructor and Description |
|---|
ServiceRuleByProto() |
ServiceRuleByProto(com.google.protobuf.Message ruleValue,
String revision,
boolean loadFromFile,
ServiceEventKey.EventType eventType) |
| Modifier and Type | Method and Description |
|---|---|
ServiceEventKey.EventType |
getEventType()
缓存对象类型
|
String |
getRevision()
获取唯一标识信息
|
Object |
getRule()
获取具体的规则值
|
boolean |
isInitialized()
服务实例列表是否已经加载
|
boolean |
isLoadedFromFile()
判断是否从文件中加载
|
String |
toString() |
public static final ServiceRuleByProto EMPTY_SERVICE_RULE
public ServiceRuleByProto(com.google.protobuf.Message ruleValue,
String revision,
boolean loadFromFile,
ServiceEventKey.EventType eventType)
public ServiceRuleByProto()
public Object getRule()
ServiceRulegetRule in interface ServiceRulepublic String getRevision()
ServiceRulegetRevision in interface RegistryCacheValuegetRevision in interface ServiceRulepublic boolean isLoadedFromFile()
RegistryCacheValueisLoadedFromFile in interface RegistryCacheValuepublic ServiceEventKey.EventType getEventType()
RegistryCacheValuegetEventType in interface RegistryCacheValuepublic boolean isInitialized()
ServiceRuleisInitialized in interface RegistryCacheValueisInitialized in interface ServiceRuleCopyright © 2023. All rights reserved.