public class ServicesByProto extends Object implements Services, RegistryCacheValue
| Modifier and Type | Field and Description |
|---|---|
static ServicesByProto |
EMPTY_SERVICES |
| Constructor and Description |
|---|
ServicesByProto() |
ServicesByProto(List<ServiceInfo> services) |
ServicesByProto(com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponse response,
boolean loadFromFile) |
| Modifier and Type | Method and Description |
|---|---|
ServiceEventKey.EventType |
getEventType()
缓存对象类型
|
int |
getHashCode() |
String |
getRevision()
获取唯一标识信息
|
ServiceKey |
getServiceKey()
获取服务标识
|
List<ServiceInfo> |
getServices()
获取服务列表
|
ServiceKey |
getSvcKey() |
boolean |
isInitialized()
服务列表是否已经加载
|
boolean |
isLoadedFromFile()
判断是否从文件中加载
|
String |
toString() |
public static final ServicesByProto EMPTY_SERVICES
public ServicesByProto()
public ServicesByProto(List<ServiceInfo> services)
public ServicesByProto(com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponse response,
boolean loadFromFile)
public boolean isLoadedFromFile()
RegistryCacheValueisLoadedFromFile in interface RegistryCacheValuepublic ServiceEventKey.EventType getEventType()
RegistryCacheValuegetEventType in interface RegistryCacheValuepublic boolean isInitialized()
ServicesisInitialized in interface RegistryCacheValueisInitialized in interface Servicespublic String getRevision()
ServicesgetRevision in interface RegistryCacheValuegetRevision in interface Servicespublic ServiceKey getSvcKey()
public ServiceKey getServiceKey()
ServicesgetServiceKey in interface Servicespublic List<ServiceInfo> getServices()
ServicesgetServices in interface Servicespublic int getHashCode()
Copyright © 2024. All rights reserved.