类 RegularExpireStrategy
java.lang.Object
com.alibaba.csp.sentinel.cluster.flow.statistic.concurrent.expire.RegularExpireStrategy
- 所有已实现的接口:
ExpireStrategy
We need to consider the situation that the token client goes offline
or the resource call times out. It can be detected by sourceTimeout
and clientTimeout. The resource calls timeout detection is triggered
on the token client. If the resource is called over time, the token
client will request the token server to release token or refresh the
token. The client offline detection is triggered on the token server.
If the offline detection time is exceeded, token server will trigger
the detection token client’s status. If the token client is offline,
token server will delete the corresponding tokenId. If it is not offline,
token server will continue to save it.
- 作者:
- yunfeiyanggzq
-
构造器概要
构造器构造器说明RegularExpireStrategy(com.googlecode.concurrentlinkedhashmap.ConcurrentLinkedHashMap<Long, TokenCacheNode> localCache) -
方法概要
-
构造器详细资料
-
RegularExpireStrategy
public RegularExpireStrategy(com.googlecode.concurrentlinkedhashmap.ConcurrentLinkedHashMap<Long, TokenCacheNode> localCache)
-
-
方法详细资料
-
startClearTaskRegularly
public void startClearTaskRegularly()从接口复制的说明:ExpireStrategyclean expired token regularly.- 指定者:
startClearTaskRegularly在接口中ExpireStrategy
-