public class InstanceCache extends Object
| Constructor and Description |
|---|
InstanceCache(String appId,
String microserviceName,
String microserviceVersionRule,
Map<String,MicroserviceInstance> instanceMap)
用于初始化场景
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
cacheChanged(InstanceCache newCache) |
protected Map<String,List<CacheEndpoint>> |
createTransportMap() |
String |
getAppId() |
Map<String,MicroserviceInstance> |
getInstanceMap() |
String |
getMicroserviceName() |
String |
getMicroserviceVersionRule() |
Map<String,List<CacheEndpoint>> |
getOrCreateTransportMap() |
org.apache.servicecomb.foundation.common.cache.VersionedCache |
getVersionedCache() |
public org.apache.servicecomb.foundation.common.cache.VersionedCache getVersionedCache()
public boolean cacheChanged(InstanceCache newCache)
public Map<String,List<CacheEndpoint>> getOrCreateTransportMap()
protected Map<String,List<CacheEndpoint>> createTransportMap()
public Map<String,MicroserviceInstance> getInstanceMap()
public String getMicroserviceName()
public String getMicroserviceVersionRule()
public String getAppId()
Copyright © 2017–2021 The Apache Software Foundation. All rights reserved.