public abstract class AbstractCheckConfigCacheService extends Object implements ExpressionsCacheService
| 限定符和类型 | 字段和说明 |
|---|---|
private int |
capacity |
private com.google.common.cache.Cache<String,CheckConfig> |
configCache |
org.slf4j.Logger |
LOG |
private int |
maximumSize |
private RateLimiterCacheService |
rateLimiterCacheService |
(专用程序包) RulesParser |
rulesParser |
| 构造器和说明 |
|---|
AbstractCheckConfigCacheService() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clearCache() |
CheckConfig |
get(String key) |
int |
getCapacity() |
int |
getMaximumSize() |
void |
init() |
private void |
initCache() |
CheckConfig |
parseCheckConfigAndSetting(Check check,
String key) |
void |
remoteSetCallBack(String remote,
String val) |
void |
setCapacity(int capacity) |
void |
setMaximumSize(int maximumSize) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclear, remoteGetprivate com.google.common.cache.Cache<String,CheckConfig> configCache
public final org.slf4j.Logger LOG
@Autowired private RateLimiterCacheService rateLimiterCacheService
@Autowired RulesParser rulesParser
private int capacity
private int maximumSize
public void remoteSetCallBack(String remote, String val)
remoteSetCallBack 在接口中 ExpressionsCacheServicepublic void clearCache()
private void initCache()
@PostConstruct public void init()
public int getCapacity()
public void setCapacity(int capacity)
public int getMaximumSize()
public void setMaximumSize(int maximumSize)
public CheckConfig get(String key)
get 在接口中 ExpressionsCacheServicepublic CheckConfig parseCheckConfigAndSetting(Check check, String key)
Copyright © 2020. All rights reserved.