public class RouterRuleCache extends Object
| Constructor and Description |
|---|
RouterRuleCache() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
doInit(String targetServiceName)
每次序列化额外缓存,配置更新时触发回调函数 返回false即初始化规则失败: 1.
|
static ConcurrentHashMap<String,ServiceInfoCache> |
getServiceInfoCacheMap() |
static boolean |
isServerContainRule(String targetServiceName)
if a server don't have rule , avoid registered too many callback , it may cause memory leak
|
static void |
refresh() |
static void |
refresh(String targetServiceName) |
public static boolean doInit(String targetServiceName)
targetServiceName - public static ConcurrentHashMap<String,ServiceInfoCache> getServiceInfoCacheMap()
public static boolean isServerContainRule(String targetServiceName)
targetServiceName - public static void refresh()
public static void refresh(String targetServiceName)
Copyright © 2023 Pivotal Software, Inc.. All rights reserved.