T - the type parameterpublic abstract class AbstractDataRefresh<T> extends java.lang.Object implements DataRefresh
| 限定符和类型 | 字段和说明 |
|---|---|
protected static java.util.concurrent.ConcurrentMap<org.apache.shenyu.common.enums.ConfigGroupEnum,org.apache.shenyu.common.dto.ConfigData<?>> |
GROUP_CACHE
The Group cache.
|
| 构造器和说明 |
|---|
AbstractDataRefresh() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected abstract com.google.gson.JsonObject |
convert(com.google.gson.JsonObject data)
Convert json object.
|
protected abstract org.apache.shenyu.common.dto.ConfigData<T> |
fromJson(com.google.gson.JsonObject data)
From json config data.
|
java.lang.Boolean |
refresh(com.google.gson.JsonObject data)
Refresh boolean.
|
protected abstract void |
refresh(java.util.List<T> data)
Refresh.
|
protected abstract boolean |
updateCacheIfNeed(org.apache.shenyu.common.dto.ConfigData<T> result)
Update cache if need boolean.
|
protected boolean |
updateCacheIfNeed(org.apache.shenyu.common.dto.ConfigData<T> newVal,
org.apache.shenyu.common.enums.ConfigGroupEnum groupEnum)
If the MD5 values are different and the last update time of the old data is less than
the last update time of the new data, the configuration cache is considered to have been changed.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcacheConfigDataprotected static final java.util.concurrent.ConcurrentMap<org.apache.shenyu.common.enums.ConfigGroupEnum,org.apache.shenyu.common.dto.ConfigData<?>> GROUP_CACHE
protected abstract com.google.gson.JsonObject convert(com.google.gson.JsonObject data)
data - the dataprotected abstract org.apache.shenyu.common.dto.ConfigData<T> fromJson(com.google.gson.JsonObject data)
data - the dataprotected abstract void refresh(java.util.List<T> data)
data - the datapublic java.lang.Boolean refresh(com.google.gson.JsonObject data)
DataRefreshrefresh 在接口中 DataRefreshdata - the dataprotected abstract boolean updateCacheIfNeed(org.apache.shenyu.common.dto.ConfigData<T> result)
result - the resultprotected boolean updateCacheIfNeed(org.apache.shenyu.common.dto.ConfigData<T> newVal, org.apache.shenyu.common.enums.ConfigGroupEnum groupEnum)
newVal - the lasted configgroupEnum - the group enumCopyright © 2026 The Apache Software Foundation. All rights reserved.