@Component public class RouterRuleCache extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ROUTE_RULE_PREFIX |
| Constructor and Description |
|---|
RouterRuleCache(org.springframework.core.env.Environment environment) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
doInit(String targetServiceName)
cache and register callback
return false when: 1.
|
ConcurrentHashMap<String,ServiceInfoCache> |
getServiceInfoCacheMap() |
void |
onConfigurationChangedEvent(GovernanceConfigurationChangedEvent event) |
void |
refresh(String targetServiceName) |
public static final String ROUTE_RULE_PREFIX
@Autowired public RouterRuleCache(org.springframework.core.env.Environment environment)
public boolean doInit(String targetServiceName)
public void onConfigurationChangedEvent(GovernanceConfigurationChangedEvent event)
public ConcurrentHashMap<String,ServiceInfoCache> getServiceInfoCacheMap()
public void refresh(String targetServiceName)
Copyright © 2017–2022 The Apache Software Foundation. All rights reserved.